Re: Slow queries on very big (and partitioned) table

From: Jaime Soler <jaime(dot)soler(at)gmail(dot)com>
To: Job <Job(at)colliniconsulting(dot)it>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow queries on very big (and partitioned) table
Date: 2017-02-20 12:38:52
Message-ID: CAKVUGgTD4CSXG1+HToh9hkvnG7Phn_9Bvk3a3PSdqgUKPuBtuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Please share us an explain analyze of your query and \d+ of your table

2017-02-20 13:33 GMT+01:00 Job <Job(at)colliniconsulting(dot)it>:

> Hu guys,
>
> we have a test machine with Postgresql 9.6.1 an about 800.000.000 record
> in a table.
> Table is partitioned by day, with indexes on partitioned table.
>
> Also a simple query (for example i want to search log occurred in a
> specific day), is immediate in tha partitioned table (table_2017_02_15) but
> *extremely* slow in global table.
>
> Where am i wrong?
> Shall i create global index?
>
> Thank you!
> /F
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2017-02-20 13:22:41 Re: Slow queries on very big (and partitioned) table
Previous Message Job 2017-02-20 12:33:26 Slow queries on very big (and partitioned) table