Project

General

Profile

Actions

Bug #21030

closed

Permission table slowness

Added by Peter Amstutz 8 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Story points:
-
Release relationship:
Auto

Description

Reported that permission updates on a large / busy cluster get slower and slower over time. Doing a "VACUUM FULL" fixes it but the slowness comes back after a few days.

Currently speculating that it may be due to the fact that every request that updates permission, trashed projects, or frozen projects currently creates a temporary table.

https://stackoverflow.com/questions/50366509/temporary-tables-bloating-pg-attribute

https://stackoverflow.com/questions/65035281/bloating-of-pg-attribute-caused-by-repetitive-temporary-table-creations

I think the queries that use temporary tables can be rewritten to use a CTE fairly easily, so that's worth a try.


Subtasks 2 (0 open2 closed)

Task #21065: InvestigateResolvedPeter Amstutz10/13/2023Actions
Task #21073: Review 21030-update-perm-cteResolvedPeter Amstutz10/13/2023Actions
Actions

Also available in: Atom PDF