This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Background update user_ips_remove_dupes
query on user_ips takes a while
#4430
Labels
A-Background-Updates
Filling in database columns, making the database eventually up-to-date
z-bug
(Deprecated Label)
Comments
A couple of potential causes:
|
Another report of this:
At the same time:
(and user_ips was apparently growing by tens of MB every minute) |
user_ips growing rapidly seems a common theme. most odd. |
MadLittleMods
added
the
A-Background-Updates
Filling in database columns, making the database eventually up-to-date
label
Jun 3, 2022
Haven't noticed this in a while, so going to close. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-Background-Updates
Filling in database columns, making the database eventually up-to-date
z-bug
(Deprecated Label)
c.f. https://matrix.to/#/!HsxjoYRFsDtWBgDQPh:matrix.org/$15481524910FNbFt:intelfx.name?via=jki.re&via=matrix.org&via=chat.weho.st
It appears for some reason the query is taking ages (>24h, 100% CPU), despite the fact it should be happily using the index:
synapse/synapse/storage/client_ips.py
Lines 158 to 168 in 83f335b
An explain of query, after the table has been purged, is:
However, the
seq scan
is probably used simply because there are so few rows in the tableThe text was updated successfully, but these errors were encountered: