`ElasticCommitIndexerWorker.perform_async` cannot be called inside a transaction
I just noticed this error happening on staging:
https://sentry.gitlap.com/gitlab/staginggitlabcom/issues/34944/
`ElasticCommitIndexerWorker.perform_async` cannot be called inside a transaction as this can lead to
race conditions when the worker runs before the transaction is committed and
tries to access a model that has not been saved yet.
Use an `after_commit` hook, or include `AfterCommitQueue` and use a `run_after_commit` block instead.
This seems urgent to fix if it breaks Elasticsearch support.