Re: A slow query - Help please?
От | Alban Hertroys |
---|---|
Тема | Re: A slow query - Help please? |
Дата | |
Msg-id | 449917CB.9030106@magproductions.nl обсуждение исходный текст |
Ответ на | Re: A slow query - Help please? (Jim Nasby <jnasby@pervasive.com>) |
Ответы |
Re: A slow query - Help please?
Re: A slow query - Help please? |
Список | pgsql-general |
Jim Nasby wrote: > On Jun 19, 2006, at 7:00 AM, Alban Hertroys wrote: > >> Now all we need to do is getting MMBase to do its queries like this :P > > > Probably a better bet would be going to 8.1 and using constraint > elimination. I searched the documentation, google and wikipedia for "constraint elimination", but couldn't find anything more specific than a reference to an O'Reilly conference about the subject. Maybe you mean constraint exclusion? If so, is that going to help excluding partitions (basically the same thing, it seems) from a query based on an ORDER BY and a LIMIT? Say we take the query I posted: "SELECT * FROM mm_posrel ORDER BY number DESC LIMIT 25;" and the knowledge that this table is inherited by two other tables, with number being unique across them (though PostgreSQL probably doesn't know about this). Can constraint exclusion determine that the last 25 number values do not occur in some of the tables? This looks liek an interesting solution, could save us quite a bit of work if we manage to use this... -- Alban Hertroys alban@magproductions.nl magproductions b.v. T: ++31(0)534346874 F: ++31(0)534346876 M: I: www.magproductions.nl A: Postbus 416 7500 AK Enschede // Integrate Your World //
В списке pgsql-general по дате отправления: