Skip to content

Conversation

xwkuang5
Copy link

@xwkuang5 xwkuang5 commented Dec 1, 2023

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.

database.

While the PostgreSQL JDBC driver is thread-safe
([ref](https://www.postgresql.org/docs/7.4/jdbc-thread.html)), 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant