Skip to content

Potential performance improvement to restore databases template ? #46

@lse-odoo

Description

@lse-odoo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    not-plannedThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions