aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/urls.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-11-23 16:29:06 +0000
committerGravatar Chris Lovering <[email protected]>2021-11-23 16:29:06 +0000
commit5b1bb82165d188a571c8999f17ef52f3856c9518 (patch)
treefd5818998d1a82670448909bf8a83a806ad795b7 /pydis_site/apps/api/urls.py
parentMerge pull request #627 from python-discord/don't-always-calc-activity-blocks (diff)
Alter message query to leverage index
Previously this query would convert each row to an array just to check if it matched or not. By changing EXCLUDE_CHANNELS to a tuple instead of a list, it doesn't get passed as an array, so we can do a simple NOT IN check. This will also allow us to add an index with this condition to speed it up further.
Diffstat (limited to 'pydis_site/apps/api/urls.py')
0 files changed, 0 insertions, 0 deletions