Query on primary keys takes too long

I have a table which keeps details of all cars along major highways. Each year, approximately 72 million rows are added. A query on particular county, station number, lane number and date, which is concatenated as mnth||day||yr takes a long time to retrieve a large result set. All the above are a part of PK, in addition to vehicle code, etc. An index on station number, filenum exists. I have tried a function-based index. This does not seem to help.
Depending on your DBMS, I recommend doing some searches within the vendor's devnet areas looking for hints on performance tuning. Also check out the InnerCore at www.coreintegration.com for ideas and/or post your query. But get specific on the installation. What DBMS, what version, size of the dimension tables, what is the query tool, etc.

Start the conversation

0 comments

Register

I agree to TechTarget’s Terms of Use, Privacy Policy, and the transfer of my information to the United States for processing to provide me with relevant information as described in our Privacy Policy.

Please check the box if you want to proceed.

I agree to my information being processed by TechTarget and its Partners to contact me via phone, email, or other means regarding information relevant to my professional interests. I may unsubscribe at any time.