Subject | Re: [firebird-support] Optimization Question |
---|---|
Author | Jakub Hegenbart |
Post date | 2004-02-19T18:07:35Z |
================= Původní zpráva =================
Od (From): "Dan Wilson" <dwilson@...>
Komu (To): firebird-support@yahoogroups.com
Kopie (Cc):
Předmět (Subject): Re: [firebird-support] Optimization Question
Datum (Date): 19. 2. 2004 18:32
==================================================
Enjoy your fast queries :)
Jakub
____________________________________________________________
Nejvíc mi sedí, když si můžu vybrat! Třeba 1200 SMS, 120 MMS nebo 240 minut
volání ZDARMA. Vyberte si bonus, který opravdu chcete. http://ad2.seznam.cz/redir.cgi?instance=70752%26url=http://www.oskar.cz
Od (From): "Dan Wilson" <dwilson@...>
Komu (To): firebird-support@yahoogroups.com
Kopie (Cc):
Předmět (Subject): Re: [firebird-support] Optimization Question
Datum (Date): 19. 2. 2004 18:32
==================================================
> > PLAN (SPREADACTIONTABLE ORDERED SPREADID_INDEX);That's great! After "dummy updates", we have even "dummy orders..." Well, doesn't matter. I'm just asking myself why is the ORDER BY SPREAD_ID, ACTION_TIME necessary. Could the optimizer be tweaked to infere that if there is an equality on first n columns of an index, the n+1 column can be ordered using ORDERED read in such cases? The rule about being first column doesn't apply here because the first column of the index key is effectively out of the game.
>
> This is indeed the solution, although Thomas Von Stetten showed me how to do that with the Order By clause rather than invoking the plan directly. I prefer not to impose plans directly on Firebird if I can work around it, as I know I will one day make some improvement somewhere and forget to change the direct plan override.
>
> Thanks so much for your help!
>
> Dan.
Enjoy your fast queries :)
Jakub
____________________________________________________________
Nejvíc mi sedí, když si můžu vybrat! Třeba 1200 SMS, 120 MMS nebo 240 minut
volání ZDARMA. Vyberte si bonus, který opravdu chcete. http://ad2.seznam.cz/redir.cgi?instance=70752%26url=http://www.oskar.cz