diff options
author | 2021-11-23 16:29:06 +0000 | |
---|---|---|
committer | 2021-11-23 16:29:06 +0000 | |
commit | 5b1bb82165d188a571c8999f17ef52f3856c9518 (patch) | |
tree | fd5818998d1a82670448909bf8a83a806ad795b7 /pydis_site/apps/api/pagination.py | |
parent | Merge 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/pagination.py')
0 files changed, 0 insertions, 0 deletions