[backend] Set postgres geqo threshold and collapse limits to something more reasonable until we've refactored the backend to require less joins

This commit is contained in:
Laura Hausmann 2023-11-20 22:04:27 +01:00
parent a6fa393359
commit 661c31db0c
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -193,6 +193,8 @@ export const db = new DataSource({
database: config.db.db,
extra: {
statement_timeout: 1000 * 10,
//FIXME: remove this once the avatar/banner joins backend refactor is complete
options: '-c geqo=on -c geqo_threshold=12 -c from_collapse_limit=40 -c join_collapse_limit=40',
...config.db.extra,
},
synchronize: process.env.NODE_ENV === "test",