mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
DittoPostgres: use pool size for number of CPU cores
This commit is contained in:
parent
f4c02f1568
commit
a3e54fdff4
1 changed files with 4 additions and 3 deletions
|
|
@ -16,9 +16,10 @@ export class DittoPostgres {
|
|||
},
|
||||
// @ts-ignore mismatched kysely versions probably
|
||||
createDriver() {
|
||||
return new PostgreSQLDriver({
|
||||
connectionString: Deno.env.get('DATABASE_URL'),
|
||||
});
|
||||
return new PostgreSQLDriver(
|
||||
{ connectionString: Deno.env.get('DATABASE_URL') },
|
||||
navigator.hardwareConcurrency,
|
||||
);
|
||||
},
|
||||
createIntrospector(db: Kysely<unknown>) {
|
||||
return new PostgresIntrospector(db);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue