mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01: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
@ -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 New Issue
Block a user