MongoDB Compass doesn't add index

So I have a DB with some stuff in, When I use MongoDB Compass and click on create index and choose a numeric field of the objects in the list and type ASC then after I press create index to add it mongodb will freeze and when I open a second version of mongodb it will show the index added with 4.1kb size (empty). This index will also go away on restart and mongodb isn’t consuming any resources in taskmanager.

I read something about configuring a keyfile so I tried that but this just causes me to be completely locked out of connecting to mongodb with mongodb compass. I’m on windows btw.

Turns out I just had to wait a few hours

1 Like