git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 7746611f authored by Evan Prodromou's avatar Evan Prodromou

create an index on user.created so sitemap generation is faster

parent c5e89527
......@@ -202,6 +202,12 @@ class SitemapPlugin extends Plugin
null, false),
new ColumnDef('modified', 'timestamp')));
$userCreated = $schema->getColumnDef('user', 'created');
if (empty($userCreated) || $userCreated->key != 'MUL') {
$schema->createIndex('user', 'created');
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment