I triggered tag deletion on onpremise sentry for some of my projects in order to get rid of some PII data.
And since then (almost 2 days now) I see an increase in the CPU (almost 100%) of the postgres backend.
I see the following query quite frequently getting scheduled in the DB:
delete from sentry_eventmapping where id = any(array( select id from sentry_eventmapping where ("group_id" = ****) limit 100 ``` I believe due to this reason, the DB is becoming unavailable and workers are not being able to write new incoming events into it. This results in an increase of the queue size and the events are getting delayed (around 3 hours in some cases since yesterday) in the UI. The queue which is constantly growing is events.preprocess_event What will be the best way to resolve this issue? Can I somehow stop the deletion of the tags from the worker side? I think the deletion is happening periodically in the DB.