Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: Order BY AND Index

$
0
0
Author: Nileshkul
Subject: Order BY AND Index
Posted: Sat Dec 31, 2016 6:33 pm (GMT 5.5)

I have a db2 table which index is order by time-add field ascending.
The table is queried million times a day using a SQL query having order by time-add descending.The SQL is heavy cpu consuming. Will making index on table as descending to match with sql can save cpu time? We can not change sql query as it is business requirement to have order by descending


Viewing all articles
Browse latest Browse all 8500

Trending Articles