[Ilugc] CGI and PgSQL

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Thu Jan 11 18:47:46 2007

Hi All,

We have written an CGI Program in C + libpq. In that, whenever a req
is received, we will do,

1. Connect to PgSQL
2. Exec the Query
3. Return the result

This above steps takes nearly 8ms. 4ms to Connect to PgSQL and 4ms for
other steps. We like to avoid doing the 1st step every time, by
keeping the PgSQL connection alive. Any tips to do this?

Apache v2.0
PgSQL v7.4.6

Bye :)
-- 
Bharathi S

Other related posts: