jgaskins / perpetuity-postgres

Postgres adapter for Perpetuity
MIT License
10 stars 7 forks source link

Thread safety #4

Closed jgaskins closed 10 years ago

jgaskins commented 10 years ago

We need a connection pool or something so that we can execute multiple requests in parallel. We support a pool_size attribute on the Postgres adapter to be compatible with the MongoDB adapter, but we could pass that along.

Rather than letting Postgres talk directly to a Connection, we should probably have it talk to a ConnectionPool and let that object pass the query to the first available Connection.

jgaskins commented 10 years ago

Fixed in b041749d60a0655e16f03d10b35f9cbdbce0688d