Re: execution time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: execution time
Дата
Msg-id 1020.1424272797@sss.pgh.pa.us
обсуждение исходный текст
Ответ на execution time  (Valentina Tedone <valetedo88@gmail.com>)
Список pgsql-admin
Valentina Tedone <valetedo88@gmail.com> writes:
> The problem is about time, infact to solve i.e. this query:

> "SELECT * FROM data d WHERE d.type = 7 AND
> (((d.metadata->'chromosome'->>'value')::text IN ('3','7')) AND
> ((d.metadata->'somatic'->>'value')::boolean = 'true')) and
> ((d.metadata->'filter'->>'value')::text IN ('pass')) LIMIT 30;"

> the first db has an average time about  52.876 ms, the second about
> 470.1172 ms and the bigger one about 58.3572 ms.

> Why is there this difference?it is only for the different strategy?

You have not provided enough detail to let anyone do more than guess.
There is advice here about how to ask answerable questions:
https://wiki.postgresql.org/wiki/Slow_Query_Questions

            regards, tom lane


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

Предыдущее
От: Luis Antonio Dias de Sá Junior
Дата:
Сообщение: Re: High availability with Postgres
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: PostgreSQL File System Based Backup Restartability