Author: Marso
Subject: Reply to: Order BY AND Index
Posted: Sun Jan 01, 2017 8:42 pm (GMT 5.5)
Although there is not enough information to give a definite answer, I tend to think that no, it will not change much.
Getting answers to the following questions will give you (and your DBA) a few hints about what can be done:
Subject: Reply to: Order BY AND Index
Posted: Sun Jan 01, 2017 8:42 pm (GMT 5.5)
Quote: |
Will making index on table as descending to match with sql can save cpu time? |
Getting answers to the following questions will give you (and your DBA) a few hints about what can be done:
- How often do you REORG this table ?
- How often do you RUNSTATS for this table ?
- Is the index clustered ?
- How many rows in the table ?
- How many rows are fetched by the query ?
- Is the column TIME-ADD defined as a TIMESTAMP ?
- Do you have other columns in the WHERE clause ?
- Did you try to EXPLAIN the query ?