Skip to content

DELETE /guilds/{guild.id}/roles/{role.id} takes a very long time on larger guilds (even with no members in the role) #3265

Discussion options

You must be logged in to vote

It's because we iterate over the entire member list to remove the role. It can't be made faster without making it async table scan.

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@erkinalp
Comment options

@noocoke
Comment options

Answer selected by msciotti
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
7 participants
Converted from issue

This discussion was converted from issue #1815 on July 01, 2021 19:12.