I’m running community edition (v7) on latest Mac OS version (Intel Mac). This is a nodejs application with a lot of tests that I’ve written and each set of tests creates a new DB and several collections with indexes before it runs that test.
The bottleneck is creating the indexes. It’s taking around 4 seconds to do this and it didn’t seem so bad until one of my developers who uses windows ran the tests and I noticed his ran much faster, especially when creating the indexes.
So I have been back an forth with chatgpt and the mongodb doc about different things I can try and nothing really moves the needle. It’s always around 4 seconds, which wouldn’t be terrible one at a time but when I run a full regression it’s 30 tests. Also it wouldn’t seem out of line if there was something to index. These are always empty databases.
Any ideas? I’ve tried all the settings in mongodb that I can find and turned spotlight index off on the db directory…