cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Low performance with wrong statistics

Former Member
8,609

Statistics that are generated in the table syscolstat are really needed for the database?

I'm having problems because of low performance statistics. I periodically drop statistics and improves performance significantly. Is there any possibility to not generate them?

Thanks, Leonardo.

View Entire Topic
Former Member
0 Likes

These are the results:

Before drop statistics without order by clause

Before drop statistics with order by clause

After drop statistics without order by clause

After drop statistics with order by clause

In my previous tests I was not running the command: call sa_flush_cache() so the result was so diverse. I do not understand why the return of select is so slow.

chris_keating
Product and Topic Expert
Product and Topic Expert
0 Likes

Can you please email or attach the query plan as per the instructions. The screen caps and PDFs do not contain all of the information nor provides an easy mechanism to analyze the issue. To get the plan that we require,

  1. Go to Tools | Plan Viewer or Shift-F5
  2. Set the Statistics Level drop down to "Detailed and node statistics"
  3. Click Get Plan button
  4. Click Save As ... button and select a filename that identifies the plan iteration
  5. Post or email the .saplan file that is generated from each iteration.

Please ensure that sa_flush_cache() is called for each iteration as noted in Ani's previous post.