YCSB icon indicating copy to clipboard operation
YCSB copied to clipboard

[postgrenosql] Each thread gets its own connection to the database.

Open xwkuang5 opened this issue 2 years ago • 0 comments

While the PostgreSQL JDBC driver is thread-safe (ref), multiple threads using the same connection returned from the driver will still block each other.

This change updates the DB client implementation to have each thread maintain their own driver and connection. This is useful in the transaction phase to improve the throughput performance of a single load driver process without having to resort to using multiple processes.

xwkuang5 avatar Dec 01 '23 17:12 xwkuang5