Re: [PERFORM] performance contradiction

Поиск
Список
Период
Сортировка
От Feike Steenbergen
Тема Re: [PERFORM] performance contradiction
Дата
Msg-id CAK_s-G3sARA1-450K91HfHtMtZJRCzHPcGKtR9d_vDuAWyA8ag@mail.gmail.com
обсуждение исходный текст
Ответ на [PERFORM] performance contradiction  (Gabriel Dodan <gabriel.dodan@gmail.com>)
Список pgsql-performance
On 23 January 2017 at 17:55, Gabriel Dodan <gabriel.dodan@gmail.com> wrote:
>
> BUT if I run a trivial select on both servers, on a similar table, the select
> perform much much better on second server!

You're comparing two very different systems it seems, therefore you might be
looking at difference in the performance of EXPLAIN, just getting timing
information of your system may be the most expensive part[1], you could disable
the timing explicity:

EXPLAIN (ANALYZE ON, TIMING OFF) <query>

And, there is something that stands out:

So it seems there is also some difference in the data, we could validate the
actual numbers:

SELECT sum(pg_column_size(symbols_tests))/count(*) FROM symbols_tests;

regards,

Feike

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

Предыдущее
От: PC Drew
Дата:
Сообщение: [PERFORM] Inaccurate GiST Index Cost Causes DB Contention
Следующее
От: Mike Beaton
Дата:
Сообщение: [PERFORM] Correct use of cursors for very large result sets in Postgres