Database created from template from odev used the default strategy, see:
|
WITH TEMPLATE "{template}" |
However, other strategies exist and might be better for big databases, see;
See: https://www.postgresql.org/docs/current/sql-createdatabase.html#CREATE-DATABASE-STRATEGY
I tested locally with a upgrade database dump (6466 MB), the results are not incredible, but it might be worth to consider with other database;
w/ default strategy (WAL_LOG according to SQL doc): ~19 seconds
w/ STATEGY = FILE_COPY: ~ 18 seconds
Database created from template from odev used the default strategy, see:
odev/odev/common/connectors/postgres.py
Line 195 in 0339cfc
However, other strategies exist and might be better for big databases, see;
See: https://www.postgresql.org/docs/current/sql-createdatabase.html#CREATE-DATABASE-STRATEGY
I tested locally with a upgrade database dump (6466 MB), the results are not incredible, but it might be worth to consider with other database;
w/ default strategy (
WAL_LOGaccording to SQL doc): ~19 secondsw/
STATEGY = FILE_COPY: ~ 18 seconds