-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexes in database #98
Comments
Is this still relevant? Any progress? |
Hi... you should create an index like: CREATE INDEX IN_DPPPT_GAEN_EXPOSED
ON DPPPT.T_GAEN_EXPOSED (ROLLING_START_NUMBER, RECEIVED_AT); When the number of requests is high and you have thousands of records.... |
I remember there has been an issue with creating indexes on the keys, as this will reveal some information. I'll ask Carmela and Wouter... |
IMHO you are not revealing any information. With indexes, you are optimising the database access when you are "plenty" of TEKs. If you don't create the index, you are doing "full scan" every time you execute this query: |
So the problem is this: currently all new keys are batched together in buckets by setting |
OK - I looked at it the wrong way: the server knows anyway who did what, so this doesn't matter. However, discussing with Carmela and Wouter, we concluded that the sorting should not be done on So making an index is a good idea - how to add the index afterwards? |
Hi @ineiti .. If you are saying to create an index on The key thing is that you should create indexes for optimising your queries. If you have a query like this: Line 102 in 288d099
You need to include those fields
|
Thanks for the explanation. The My original question is most probably known by Martin or Patrick: where to put those lines so the indexes are created correctly ;) |
Check if it might make sense to create additinal indexes in the database.
The text was updated successfully, but these errors were encountered: