Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: ORDER BY clause is causing my query to run for a very long time (possibly indefinitely!)

$
0
0

Hi David,

 

Using date to sort query result may only be workable if you have a small table or that column is indexed.

 

In your case, try to order by document number to see if the performance is acceptable. Although it is not as good as date column, it is still better than no particular order.

 

Thanks,

Gordon


Viewing all articles
Browse latest Browse all 9269

Trending Articles