Re: index performance question
От | Laurette Cisneros |
---|---|
Тема | Re: index performance question |
Дата | |
Msg-id | Pine.LNX.4.44.0209181353240.3174-100000@visor.corp.nextbus.com обсуждение исходный текст |
Ответ на | Re: index performance question (Bruno Wolff III <bruno@wolff.to>) |
Ответы |
Re: index performance question
|
Список | pgsql-admin |
Yes, indeed. The workaround was quite simple (for min and max). But, having read the postings, I must cast my vote for fixing at least the standard aggregates so that they work faster (by being smarter). I realize that there is a trade off for allowing the building of custom aggregates but it is certainly not a good selling point (selling is relative of course since pgsql is free) if basic funcionality has bad performance. I deal with those that think we should be using, gulp, Oracle, a db I have up to now in my db career been able to avoid. Their argument, how could pgsql have the capabilities that are needed it doesn't even have replication or the ability to query more than one database. I try to convey the abilities that this server has but it's hard to back that up when the basic functions operate in a not so good manner. Just my 2 cents. And, don't get me wrong, I love postgresql. L. On Wed, 18 Sep 2002, Bruno Wolff III wrote: > On Wed, Sep 18, 2002 at 13:09:07 -0700, > Laurette Cisneros <laurette@nextbus.com> wrote: > > > > Aren't aggregates smart enough to use an index on the column? This takes 8 > > minutes to run! I can't see that I should have to build a functional index > > (is it possible for an aggregate?) to get this to run faster? > > I don't believe a functional index would work for an aggregate. > > The way to do this is to use an order by clause and a limit 1 clause. > > This has been discussed a lot on the lists and you should be able to find > more details in the archives. > -- Laurette Cisneros The Database Group (510) 420-3137 NextBus Information Systems, Inc. www.nextbus.com ---------------------------------- A wiki we will go...
В списке pgsql-admin по дате отправления: