Re: Slow query after upgrades

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Slow query after upgrades
Дата
Msg-id 4761BACA.4020008@opencloud.com
обсуждение исходный текст
Ответ на Re: Slow query after upgrades  (Tom Duffey <tduffey@techbydesign.com>)
Ответы Re: Slow query after upgrades  (Tom Duffey <tduffey@techbydesign.com>)
Re: Slow query after upgrades  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
Tom Duffey wrote:

> This makes a huge difference, thanks.  However, is there anything I can
> do to help improve the performance of that query when using a newer
> protocol?

We need to work out what is going wrong under the newer protocol first,
which unfortunately can be a bit tricky because psql doesn't use the
query protocol in the same way as the JDBC driver.

Can you write a little JDBC app that runs the query with EXPLAIN
ANALYZE, setting parameters in the same way that your real app does, and
dump out the resultset it gets back? (which should be the EXPLAIN
results rather than the real data, IIRC)

-O

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

Предыдущее
От: Tom Duffey
Дата:
Сообщение: Re: Slow query after upgrades
Следующее
От: Tom Duffey
Дата:
Сообщение: Re: Slow query after upgrades