I have one collection for which I don't need any index. I just keep the user term and date, so my collection is very simple.
class UserSearch { public string Term {get; set;} pulic DateTime Date {get;set;} }
When I store one UserSearch element, my collection has _id and a default index.
According to my information, these "_id" fields will be indexed in ram, so I donβt want to waste RAM memory for the collection that I just store, and I calculate something every 12 hours.
I am trying to remove it, but I canβt.
var indexes = UserSearch(true).GetIndexes(); //delete UserSearch Default Index if(UserSearch(true).IndexExistsByName("_id_")) { UserSearch(true).DropIndexByName("_id_"); }
Any suggestion / solution?
source share