I have one collection for which I don't need any index. I just store user search term and date, so my collection is really simple.
class UserSearch {
public string Term {get; set;}
pulic DateTime Date {get;set;}
}
When I store one UserSearch item, my collection have _id and default index on it.
From my knowledge, those "_id" fields will be indexed in ram, so I don't want to spend ram memory for collection which I just store and I'm calculating something every 12 hours.
I try to delete 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?