dbTalk Databases Forums  

prepared statements in pqxx are SLOW!

comp.databases.postgresql.interfaces comp.databases.postgresql.interfaces


Discuss prepared statements in pqxx are SLOW! in the comp.databases.postgresql.interfaces forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wiseguy
 
Posts: n/a

Default prepared statements in pqxx are SLOW! - 04-06-2005 , 01:30 PM






When using the latest release of libpqxx I did some tests to compare
the speed of prepared statement queries against the same query
being executed in a non-cached fashion. Both queries consist of the same
SQL that returns a subset of indexed x,y,z positional data. I'm seeing that
CONSISTENTLY the prepared queries are 20% slower.

Can someone confirm? The whole purpose of prepared queries is to improve
response time in frequently used queries.

Minimum round trip time to execute a query via UNIX domain socket on the
local machine is 0.8 seconds and over 1 second when using prepared statements.
This is way too long. How can I cut the time down?




http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.