EnsureIndexCommand uses for projects in utils.chunked_find(M.Project):
to find each project's database_uri because we used to have different db connections for different projects. This is theoretically still supported, but not used. This is terribly slow on a big system though.
We should either remove per-project database_uri functionality, or have some smart logic (perhaps a command option) so EnsureIndexCommand doesn't go through all the projects looking for new databases.
Closed #489.
{allura, forge-classic}:je/42cc_4091
Removed per project database_uri functionality.
Also removed
scripts/migrate_project_database.py
(migrates per project db to main db), since it's meaningless from now.