Here you will find an example on how to use psycopg2 in async mode: http://projects.unbit.it/uwsgi/browser/tests/pgbound_async.py
This example is one-connection-for-request style (like Django) but obviously you can reach higher performance using a connection pooler (like pgpool) and maintaining a connection for every core (yes, you will ends up with thousand of opened connections, but pgpool can handle this flawlessly) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
