Re: performance hit with large tables...jdbc?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: performance hit with large tables...jdbc?
Дата
Msg-id 28960.971753124@sss.pgh.pa.us
обсуждение исходный текст
Ответ на performance hit with large tables...jdbc?  (<mikeg@robot6.com>)
Список pgsql-novice
<mikeg@robot6.com> writes:
> but now that we're going live with more data, we're suddenly
> noticing that a select on the primary key field is taking
> about 90 seconds.  However, if I go into the command line
> on the db server and do the exact same SQL select manually,
> it takes < 1 sec.  This makes me think it's some problem
> with my JDBC driver, or some hardware between the web-server
> and the db-server.

Hm.  Run the postmaster with -d2 so that queries are logged into
the postmaster log file, and see what query the client is really
sending.  I'll bet it's not what you think it is.

Another possibility is that there's some horrid inefficiency
in transmitting the query results, but unless this query is
returning a whole lot of data, that doesn't seem like it'd
explain 90 seconds.

            regards, tom lane

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

Предыдущее
От:
Дата:
Сообщение: performance hit with large tables...jdbc?
Следующее
От: Stoffel van Aswegen
Дата:
Сообщение: Comparison of Postgres vs MySQL