You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Every hour, it runs for 20 minutes. It's running in a database thread but I suspect it's holding the GIL for a lot of that time,
It's table-scanning the whole table, and then doing a query on every single (user_id,destination) in the table (over a million of them). The code doesn't seem to realise that users might have more than one device. We either need to optimise the query, or move the pruned remnants out to a separate table so that we aren't redoing the same work the whole time.
Every hour, it runs for 20 minutes. It's running in a database thread but I suspect it's holding the GIL for a lot of that time,
It's table-scanning the whole table, and then doing a query on every single (user_id,destination) in the table (over a million of them). The code doesn't seem to realise that users might have more than one device. We either need to optimise the query, or move the pruned remnants out to a separate table so that we aren't redoing the same work the whole time.
Related: #4115
The text was updated successfully, but these errors were encountered: