Using database.connectionPool with MySQL

86 views
Skip to first unread message

Neil Leathers

unread,
Sep 25, 2013, 10:34:52 AM9/25/13
to repo-d...@googlegroups.com
I see in the documentation for database.connectionPool the statement: "Default is false for MySQL, and true for other database backends". Why is this the case? Is the connectionPool unstable with MySQL? Do I need to configure something special in MySQL (or Gerrit) to handle this? Are there any caveats or tuning issues I need to be aware of if I turn this on?

Neil Leathers

Shawn Pearce

unread,
Sep 25, 2013, 5:32:37 PM9/25/13
to Neil Leathers, repo-discuss
I wrote this because IIRC MySQL was having trouble keeping the
connections open in the pool. Connections would be returned, closed by
the server, and then not work anymore. Disabling the pool was safer as
it allowed connections to be closed after use and reopened the next
time one is demanded.

MySQL on localhost can open/close connections much faster than
PostgreSQL can. There is lower overhead for the open/close part of the
connection, so the impact of the pool vs. no pool is less noticeable
on MySQL.
Reply all
Reply to author
Forward
0 new messages