Re: Very slow query (3-4mn) on a table with 25millions rows

Поиск
Список
Период
Сортировка
Искать
От
Martín Marqués
Тема
Re: Very slow query (3-4mn) on a table with 25millions rows
Дата
Msg-id
24ade69a-70bf-4cb1-75ae-03a5481f067a@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
Very slow query (3-4mn) on a table with 25millions rows Abadie Lana <Lana.Abadie@iter.org>
Re: Very slow query (3-4mn) on a table with 25millions rows Tom Lane <tgl@sss.pgh.pa.us>
Re: Very slow query (3-4mn) on a table with 25millions rows Abadie Lana <Lana.Abadie@iter.org>
Re: Very slow query (3-4mn) on a table with 25millions rows Martín Marqués <martin@2ndquadrant.com>
Re: Very slow query (3-4mn) on a table with 25millions rows Abadie Lana <Lana.Abadie@iter.org>
Re: Very slow query (3-4mn) on a table with 25millions rows Félix GERZAGUET <felix.gerzaguet@gmail.com>
Re: Very slow query (3-4mn) on a table with 25millions rows Félix GERZAGUET <felix.gerzaguet@gmail.com>
Re: Very slow query (3-4mn) on a table with 25millions rows Abadie Lana <Lana.Abadie@iter.org>
Re: Very slow query (3-4mn) on a table with 25millions rows Abadie Lana <Lana.Abadie@iter.org>
El 26/07/16 a las 06:01, Abadie Lana escribió:
> Hi Tom,
> Thanks for the hints..
> 
> I made various tests for index
> The best I could get is the following one with 
> create index vat_funcvaratt_multi_idx on functionalvarattributes(split_part(split_part(attvalue,' ',1),'.',1), tag_id, atttype_id);
> analyze functionalvarattributes;

I suggest running analyze over the other tables involved in the query
(or over the whole DB) and then sending back the explain analyze, or
even better EXPLAIN (ANALYZE,BUFFERS).

Some estimates are close and others are really wrong.

I'm not saying that's going to give you a big bust but we'll be able to
see the planner with fresh stats

-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

В списке pgsql-performance по дате отправления
От: Abadie Lana
Дата:
От: Abadie Lana
Дата:
FAQ