From 7352665216b858c4779a5c2ce877a0942b8e9489 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Wed, 14 Nov 2018 09:31:06 +1300 Subject: [PATCH] Add db index on PublishDate (#559) * Add db index on PublishDate --- code/model/BlogPost.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/model/BlogPost.php b/code/model/BlogPost.php index 2a5305c..20bb2c3 100644 --- a/code/model/BlogPost.php +++ b/code/model/BlogPost.php @@ -32,6 +32,13 @@ class BlogPost extends Page 'AuthorNames' => 'Varchar(1024)', 'Summary' => 'HTMLText', ); + + /** + * @var array + */ + private static $indexes = array( + 'PublishDate' => true, + ); /** * @var array