Skip to content

Subtransactions and performance degradation, part 2: issues on replicas while a long-running transaction lasts on the primary

In #20 (closed), it was explored how having 65+ subtransactions in a transaction can be harmful for performance on a single node ("Cybertec case", https://www.cybertec-postgresql.com/en/subtransactions-and-performance-in-postgresql/)

Here the goal is to build a synthetic reproducible benchmark that shows how performance degrades on a replica while there is an ongoing long-running transaction on the primary and many transactions happened containing low numbers of subtransactions -- ("GitLab case", gitlab-org/gitlab#338410 (closed))

See also

TODO

Edited by Nikolay Samokhvalov