-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
appendersAffects one or more Appender pluginsAffects one or more Appender pluginsappenders:JDBCIssue concerning the JDBC appenderIssue concerning the JDBC appender
Description
The JDBC appender takes a very conservative approach to SQL connection sharing:
- as most appenders, each
appendcall is synchronized, - each event (or batch of events) is logged using a different
Connectionobject, which is closed at the end of the call, - to prevent the high performance hit from creating many
Connections, users are advised to use a connection pool like DBCP2.
This approach has many disadvantages:
- it does not profit from the connection pool, since at any time at most one connection will be borrowed from the pool,
- on the other hand users that use
DriverManagerget a performance hit, even if 1. ensures that noConnectionobject will be used concurrently on multiple threads.
Metadata
Metadata
Assignees
Labels
appendersAffects one or more Appender pluginsAffects one or more Appender pluginsappenders:JDBCIssue concerning the JDBC appenderIssue concerning the JDBC appender
Type
Projects
Status
To triage