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.
Log in to post a comment.