[backend] Revert postgres geqo threshold and collapse limits to defaults

This is no longer required due to the refactored user table requiring significantly less table joins in more complex queries
This commit is contained in:
Laura Hausmann 2023-11-21 01:29:46 +01:00
parent 302b112f05
commit c00e28712e
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -193,8 +193,6 @@ export const db = new DataSource({
database: config.db.db, database: config.db.db,
extra: { extra: {
statement_timeout: 1000 * 10, 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, ...config.db.extra,
}, },
synchronize: process.env.NODE_ENV === "test", synchronize: process.env.NODE_ENV === "test",