Search Postgresql Archives

Re: improvements/feedback sought for a working query that looks a bit ugly and might be inefficient

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On May 16, 2017, at 10:20 PM, David G. Johnston wrote:

Unless you can discard the 5 and 1000 limits you are going to be stuck computing rank three times in order to compute and filter them.

Thanks a ton for your insight.  I'm suck using them (5 is required for throttling, 1000 is required for this to run in a reasonable amount of time)

The overhead of computing things is indeed super small.  I'm not really worried much about the performance of this query (it runs around 3ms now, down from 20+s).  I'm more worried about this code being referenced and a (possibly improper) idiom being used on queries where it will have a noticeable effect.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux