Search Postgresql Archives

Is there a benefit to CLUSTER when retrieving individual records?

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

 



I see how CLUSTER can speed up a range query (eg WHERE val < 30),
because it groups those records in contiguous pages.

What about where I'm only pulling one record back? Eg WHERE user_id =
100.  Is there any benefit to a CLUSTER in that case?  Is there
anything lost if I CLUSTER on a different index?

If my usage is: A large number of single record SELECTs based on
user_id, and a small number of range queries, usually based on val,
would I be best off CLUSTERing on val?

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[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