Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
>>the logic of the query selects records for an individual employee (by id number) after a specific date. Employees have a record for each pay so there are multible records for each employee id in the file.
>>
>>I had thought about bringing the table into the project and setting up an index on employee id to help the query but the improvement was zero.
>>
>>Can anyone suggest a strategy?
>
>Have you tried with another index on the date?
Addning the index on date increased performance to the 1 second range. Thanks.
CG
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement