Hello Roberto,

thank you very much!

here is working version with psycopg2 pool and it's realy async - 
http://pastebin.com/JuEL4tFy

but seems you meant some other way of pooling connections, right?
could you explain please with little more details, as current version
connections limited to amount of pool threads (50 here). but in this
schema even better not to use pgpool, but you need just to get/put
conn as fast as possible after each request.

postgresql connect is very expensive, even when you connect to pgpool/pgbouncer.

so even django is better to use with modified psycopg2 adapter, what
will use psycop2.pool

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to