Hello,<BR>
<BR>
Not sure this is the best forum for this question, but I am curious if anyone has any suggestions on how I can make PQexec run faster? Right now my (very simple) query is running at a maximum of about 12 Hz. This may seem quick to most, but I am working on a real-time system and would like to see this data at more of a 20-30 Hz rate.<BR>
<BR>
The following is the code and query I am testing:<BR>
<FONT size=2><BR>
sprintf(queryBuffer, </FONT><FONT color=#2a00ff size=2>"select asbinary(intersection(rddfpolygon.geom, GeomFromWKB('%s')));\n"</FONT><FONT size=2>, hexBuffer);</FONT><BR>
<FONT size=2>postgresDbResult = PQexec(postgresDbConn, queryBuffer);<BR>
<BR>
As I said this runs at about 11.6 Hz. Is there anything I can do to the tables or query to make it execute significantly faster? I've tested with a simple "select * from <table>" query and I still only saw about 13 HZ. Is this just a limitation of Postgres and libpq on my hardware?<BR>
<BR>
Thanks!<BR>
~Danny Kent<BR>
University of Florida</FONT><BR>