We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

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 ...@@ -202,6 +202,12 @@ class SitemapPlugin extends Plugin
null, false), null, false),
new ColumnDef('modified', 'timestamp'))); new ColumnDef('modified', 'timestamp')));
$userCreated = $schema->getColumnDef('user', 'created');
if (empty($userCreated) || $userCreated->key != 'MUL') {
$schema->createIndex('user', 'created');
return true; 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