Improve backup export speed

This commit is contained in:
Fedor Indutny
2026-03-11 17:12:27 -07:00
committed by GitHub
parent 52ba69a6f2
commit 979497cea3
6 changed files with 77 additions and 16 deletions

View File

@@ -276,6 +276,12 @@ export class MainSQL {
duration: number;
}>;
if (method === 'pageBackupMessages' && this.#pauseWaiters == null) {
throw new Error(
'pageBackupMessages can only run after pauseWriteAccess()'
);
}
// pageMessages runs over several queries and needs to have access to
// the same temporary table, it also creates temporary insert/update
// triggers so it has to run on the same connection that updates the tables