-
Order by caused sql qry to slow down
Our current sort_area is 64K. When we run a query with order by clause causing it do a sort (by examining TKPROF output), the system runs much slower than without the order by. The funny thing is that it only sorts 1100 items, not much data at all. Is there an easy to verify that my sort area is too small on the fly, so I can change the parameter, or I have to run BSTAT and ESTAT? Same thing with IO?
goodhealth
-
alter session set sort_area_size = blal...
seemed to the job for now. Other ideas are welcome.
goodhealth
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|