use better index type (#651)
This commit is contained in:
parent
2b3f0e740b
commit
a731f5ea9a
|
@ -127,5 +127,4 @@ Initial setup:
|
|||
|
||||
To deploy updates:
|
||||
1. Deploy the web project using [AWS Toolkit for Visual Studio](https://aws.amazon.com/visualstudio/).
|
||||
2. If the MongoDB schema changed, delete the collections in the MongoDB database. (They'll be
|
||||
recreated automatically.)
|
||||
2. If the MongoDB schema changed, delete the MongoDB database. (It'll be recreated automatically.)
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace StardewModdingAPI.Web.Framework.Caching.Wiki
|
|||
this.WikiMods = database.GetCollection<CachedWikiMod>("wiki-mods");
|
||||
|
||||
// add indexes if needed
|
||||
this.WikiMods.Indexes.CreateOne(new CreateIndexModel<CachedWikiMod>(Builders<CachedWikiMod>.IndexKeys.Text(p => p.ID)));
|
||||
this.WikiMods.Indexes.CreateOne(new CreateIndexModel<CachedWikiMod>(Builders<CachedWikiMod>.IndexKeys.Ascending(p => p.ID)));
|
||||
}
|
||||
|
||||
/// <summary>Get the cached wiki metadata.</summary>
|
||||
|
|
Loading…
Reference in New Issue