Re: Slowness of extended protocol

Поиск
Список
Период
Сортировка
От Vladimir Sitnikov
Тема Re: Slowness of extended protocol
Дата
Msg-id CAB=Je-EnV-E4qS6g9h94q=1EhC-jBh7PG=izbH8uC4qJQ-S6rg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slowness of extended protocol  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Slowness of extended protocol  (Shay Rojansky <roji@roji.org>)
Список pgsql-hackers
Stephen> While it may have good results in many cases, it's not accurate to say that using prepared statements will always be faster than not.

There's no silver bullet. <-- that is accurate, but it is useless for end-user applications
I've never claimed that "server prepared statement" is a silver bullet.

I just claim that "PrepareBindExecuteDeallocate" message does have justification from performance point of view.

Stephen FrostDropping and recreating the prepared statement is how that particular issue is addressed.

Stephen,

The original problem is: "extended query execution is slow"
I recommend "let's just add a query cache"
You mention: "that does not work since one query in a year might get slower on 6th execution"
I ask: "what should be done _instead_ of a query cache?"
You say: "the same query cache, but execute 5 times at most"

Does that mean you agree that "query cache is a way to go"?


I do not follow that. Of course, I could add "yet another debugger switch" to pgjdbc so it executes server-prepared statements 5 times maximum, however I do consider it to be a PostgreSQL's issue.
I do not like to hard-code "5" into the driver logic.

I do not like making "5 times maximum" a default mode.

Vladimir 

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Proposal for CSN based snapshots
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Proposal for CSN based snapshots