MySQL pooling?

Discussion in 'Plugin Development' started by tlm920, Aug 15, 2019.

  1. Offline


    Does anyone know a good in depth tutorial of how to setting up MySQL pooling?
    If so can you please tell me it :D
  2. Offline


    It is quite simple. You open a connection for each user and use it to query. When the session ends you close the connection.
    Normally you would open a connection for each database call, and close it afterward. But when pooling you keep it open until whenever. Keep in mind it needs to be closed at some point to prevent memory leaks.

Share This Page