pg_async
|
pg_async runs all the requests to the database servers in the threads that call db_service::run. db_service static methods are thread safe and can be called from any thread. All requests and their callbacks in a single transaction are guaranteed to run in a single thread.