Subject | Re: About conditions in SQL query. |
---|---|
Author | Adam |
Post date | 2006-02-13T22:30:50Z |
> What happen if all fields in WHERE, are indexes? which of them isFirebird ranks usefulness by the "selectivity" of the index. That is
> more important?
pretty much how unique is each value in the index. Obviously indices
supporting primary keys and other unique constraints score really well
here. Indices supporting foreign keys often score poorly.
Each "useful" index is loaded into bitmaps of records. These bitmaps
are ANDed / ORd together to come up with an even more useful bitmap.
Unlike a lot of other DBMS, Firebird can use multiple indices at the
same time for the same bit of the query.
Adam