Search Postgresql Archives

Question about the cluster command

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

 



Hi,

Can I cluster the tuples in a table like that:

group by company_id order by opendate desc

How do I create an index representing the above logic to use it with the cluster command. Can I automate the clustering process to best optimize my database performance and always get the data about a specific company ordered by date as fast as possible (to generate charts). Does autovacuum include reclustering?

Cheers,
Anton Andreev


--
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