cs-discord-at-ucf / lion

🦁A Discord bot from scratch for the UCF Computer Science Discord.
MIT License
42 stars 18 forks source link

Optimize gamble queries #818

Closed tanndlin closed 1 year ago

tanndlin commented 1 year ago

Uses built in mongoqb queries to limit the amount of fetch documents when using point related plugins.

The gamble and tacoleaderboard plugins used to take 10 seconds when waiting for all documents to then sort on the client side. The mongodb queries are much faster and only take a few ms