File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
7+ ## Unreleased
8+
9+ ### Fixed
10+ - Added index for comments, will speed up index creation
11+
712## 1.17.0 - 2021-04-29
813
914### Fixed
Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ class MongoSalatPlugin(app: Application) extends Plugin {
118118 collection(" collections" ).ensureIndex(MongoDBObject (" author._id" -> 1 ))
119119 collection(" collections" ).ensureIndex(MongoDBObject (" stats" -> 1 ))
120120
121+ collection(" collections" ).ensureIndex(MongoDBObject (" file_id" -> 1 ))
122+ collection(" collections" ).ensureIndex(MongoDBObject (" dataset_id" -> 1 ))
123+ collection(" collections" ).ensureIndex(MongoDBObject (" comment_id" -> 1 ))
124+
121125 collection(" datasets" ).ensureIndex(MongoDBObject (" created" -> - 1 ))
122126 collection(" datasets" ).ensureIndex(MongoDBObject (" tags" -> 1 ))
123127 collection(" datasets" ).ensureIndex(MongoDBObject (" files._id" -> 1 ))
You can’t perform that action at this time.
0 commit comments