Re: [HACKERS] Highly Variable Planning Times

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] Highly Variable Planning Times
Дата
Msg-id 20170419204945.ixqv5cjwh3hkpgu6@alvherre.pgsql
обсуждение исходный текст
Ответ на [HACKERS] Highly Variable Planning Times  (Michael Malis <michaelmalis2@gmail.com>)
Список pgsql-hackers
Michael Malis wrote:
> Hi,
> 
> I've been encountering highly variable planning time on PG 9.5.4.
> Running `EXPLAIN SELECT * FROM events_1171738` will take anywhere from
> 200ms to 4s. This likely has to do with the table having 1300 partial
> indexes on it (for reasons elaborated on in
> https://blog.heapanalytics.com/running-10-million-postgresql-indexes-in-production/).
> I'm trying to figure out if there is something I can do to eliminate
> the slow planning from happening.

I wonder if some BRIN index could help this use case, reducing the
number of indexes.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Highly Variable Planning Times
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Highly Variable Planning Times