Subject | Re: Compound Index |
---|---|
Author | Adam |
Post date | 2007-04-30T12:58:52Z |
--- In firebird-support@yahoogroups.com, "pokka_chi" <pokka_chi@...>
wrote:
(relatively unique) ability to combine indices on different fields at
runtime.
Most of the time, it is not worth actually declaring the compound key,
but rather individually index both fields. There are of course exceptions.
where Column1 > 1 and Column2 > 2
Adam
wrote:
>Firebird supports both declared compound keys as well as the
> Does anybody know how compound index in FB works? I'm working on a web
> application that requires the display of a table's records in pages.
> The table's primary key is a compound index of 2 fields. What I need to
> do is to get a page (around 30 records) of records start from the last
> record of the previous page.
(relatively unique) ability to combine indices on different fields at
runtime.
Most of the time, it is not worth actually declaring the compound key,
but rather individually index both fields. There are of course exceptions.
>That is the optimisers job, not something for you to worry about.
> How do I specify a condition for (Column1, Column2) > (1, 2)? Does FB
> support optimization for the use of compound index?
where Column1 > 1 and Column2 > 2
Adam