You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently montage-beta uses SQLite as its app database. Since beta runs on Toolforge it has access to ToolsDB (MariaDB) and the wikireplica — the same stack as production. Setting up MariaDB on beta would allow:
Testing MariaDB-specific query behaviour before it hits prod
Validating the production deployment docs end-to-end (including migrate_prod_db.sql)
Testing labs.py query performance against commonswiki_p with a realistic app database
Approach:
Set up from scratch (not a copy of prod) to validate reproducibility and the deployment docs
Keep the existing SQLite setup intact — this is a config switch, not a destructive change
OAuth credentials and cookie secret can be reused from the existing beta config
Import a large category and test query performance
This should ideally be done before #505 merges to prod, so that migrate_prod_db.sql and the query performance of the new schema can be verified against a real MariaDB instance first.
Currently montage-beta uses SQLite as its app database. Since beta runs on Toolforge it has access to ToolsDB (MariaDB) and the wikireplica — the same stack as production. Setting up MariaDB on beta would allow:
migrate_prod_db.sql)labs.pyquery performance againstcommonswiki_pwith a realistic app databaseApproach:
Steps (high level):
create_schema.pyagainst itmigrate_prod_db.sqlto apply the Migrate image/oldimage queries to file/filerevision/filetypes #505 migrationdb_urlat ToolsDB/metaThis should ideally be done before #505 merges to prod, so that
migrate_prod_db.sqland the query performance of the new schema can be verified against a real MariaDB instance first.