Search code examples
perlpostgresqlconnection-poolingdbi

Connection pooling using perl DBI with postgresql


i am using a perl script which inserts records into the database at every 5 minutes. Now when there is a lot of data available it might possible that number of connections made to the database increase thereby wasting my precious resources. So i want connection pooling mechanism to work with perl. I am using postgresql as my database. I googled it and i found some solutions like i found such solutions but they didnot work for me

Can anyone please tell me how can i achieve connection pooling in perl?

Thanks in advance.


Solution

  • I'm not sure I'd restrict myself to a perl solution. Just install pgbouncer and have it available to any clients you require.