Subject | Re[2]: [firebird-support] Different plans on query |
---|---|
Author | Alexander Tabakov |
Post date | 2004-02-05T15:45:18Z |
Hello Ivan,
the primary index I talk about in the productional database has
selectivity: 0,0000074... and after restoring it "drops" to
0,0000006....
Instead of using it the optimize chooses to use a foreign key with
selectivity of only: 0,00003... which is very strange to me.
--
Best regards,
Alexander mailto:saho@...
>It means that afterThanks, I didn't think about that. But it is stil very strange because
>making lot of changes into data and doing backup/restore,
>data in restored database will be stored more "dense",
>and optimizer will use different cardinality estimation.
the primary index I talk about in the productional database has
selectivity: 0,0000074... and after restoring it "drops" to
0,0000006....
Instead of using it the optimize chooses to use a foreign key with
selectivity of only: 0,00003... which is very strange to me.
>Btw. are the indexes active in the restored database ? :-)Yes they are active :))
--
Best regards,
Alexander mailto:saho@...