Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

[BUG]: the block command stopped working

Open lorenzo132 opened this issue 3 years ago • 1 comments

Bot Version

4.0.0.dev6

How are you hosting Modmail?

Systemd

Error Logs

https://hastebin.cc/omopiqobip

Screenshots

No response

Additional Information

When having to much blocker users the blocked cmd to show the blocked users will stop responding and error out.

lorenzo132 avatar Dec 21 '21 12:12 lorenzo132

Fix attempted in v4-dev8

fourjr avatar Apr 19 '22 15:04 fourjr

Reopening this, the list still fails to show when there's 1k+ users blocked. Quering through the db takes more then 30minutes which makes it impossible to use the command. This is with both Selfhosted DB's and mongo hosted DB's cc @StephenDaDev

lorenzo132 avatar Jan 18 '23 22:01 lorenzo132

Reopening this, the list still fails to show when there's 1k+ users blocked. Quering through the db takes more then 30minutes which makes it impossible to use the command. This is with both Selfhosted DB's and mongo hosted DB's cc @StephenDaDev

Coolguy suggested making a cache using redis ( https://discord.com/channels/515071617815019520/528927720063631360/1065390687270473958 ) which would be nice, however i'm afraid the regular discord user does not know how to work with redis

lorenzo132 avatar Jan 18 '23 22:01 lorenzo132

From a quick look at the code, it doesn't seem like the database is involved at all aside from when the bot pulls the config at launch

khakers avatar Jan 19 '23 04:01 khakers

Should also add, this issue (#3131) seemed to have been timezone related (and not size) so you might want to make a new one.

khakers avatar Jan 19 '23 04:01 khakers