mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
[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:
parent
a6fa393359
commit
661c31db0c
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue