I don't know of any way of "tuning" a collect statistics statement, in the way you might try to tune a regular query. A collect stats statement is going to scan the table and build the aggregate histogram. You can make the sampling size smaller, but you have to be careful if you do that, as you might risk getting poorer plans as a result.
Robin,
I don't know of any way of "tuning" a collect statistics statement, in the way you might try to tune a regular query. A collect stats statement is going to scan the table and build the aggregate histogram. You can make the sampling size smaller, but you have to be careful if you do that, as you might risk getting poorer plans as a result.
Thanks, -Carrie