Hi there
I am a Python Developer who has various hobbies in coding and one of them is coding a python-based automoderator bot on the Discord platform
However, due to its scale, I frequently run into issues with connection pooling due to the multiple concurrent requests to the pool system I am using, thus my bot shuts down due to using up all 32 connections (alongside message activity from Discord, there are tasks which query the DB as well).
Investigation of the code revealed that there is a hard-coded limit of 32 connections for a pool. Can anyone explain why that is there? I could not find anything that appeared to explain what this cap is for.
I edited my local copy of the module files to double this hard cap and started my bot with 40 connections and have not run into any issues, but I gather it's unsupported, but it still begs the question what this 32 limit is for.
Thanks for your replies in advance.
I am a Python Developer who has various hobbies in coding and one of them is coding a python-based automoderator bot on the Discord platform
However, due to its scale, I frequently run into issues with connection pooling due to the multiple concurrent requests to the pool system I am using, thus my bot shuts down due to using up all 32 connections (alongside message activity from Discord, there are tasks which query the DB as well).
Investigation of the code revealed that there is a hard-coded limit of 32 connections for a pool. Can anyone explain why that is there? I could not find anything that appeared to explain what this cap is for.
I edited my local copy of the module files to double this hard cap and started my bot with 40 connections and have not run into any issues, but I gather it's unsupported, but it still begs the question what this 32 limit is for.
Thanks for your replies in advance.