Subject | Re: slow query fixed after backup |
---|---|
Author | emb_blaster |
Post date | 2011-06-27T19:58:34Z |
> >> If it was a problem with bad plan selection, wouldn't it persist after the backup-restore?The choice of plans are made based in the index statistics. With different index statistics comes different plans...
> >>
>
> No. Backup/restore updates the index statistics.
>
> Cheers,
>
> ann
>
As Ann explained, Backup/Restore updates them.
This is what I wanted to say... But, I wasn't very clear.
Updating the index statistics before the backup you will have sure that the bad choices of the plan are because of the wrong statistics.
Thanks Ann (:
and HTH