kurzgesagt-in-a-nutshell / birdbot

A multipurpose bot for the kurzgesagt discord server
GNU General Public License v3.0
20 stars 4 forks source link

[Enhancement]: Move to an asynchronous mongo connection over current synchronous connection #230

Open arcinfini opened 2 months ago

arcinfini commented 2 months ago

Reason: Synchronous calls are blocking and can slow the bot down in cases where ping is slow, large amounts of data are being pushed or pulled from mongo, or when multiple requests at a time are called.

While we have not seen noticeable issues with speeds now, it is better to preemptively solve this.

To Do

  1. Find an alternative to pymongo (view motor or beanie) and remove pymongo from dependency list.
  2. Re-code all connections to mongo with the chosen alternative.