@gotwf 9.5 (Ya I know is a very old version 😑 )
MongoDB index changes
-
There has been some changes in indexes between 0.5.x and master(soon to be 0.5.1) so when you update to master or 0.5.1 you should drop the indexes on the
objects
collection to save some space. To drop all the indexes on the objects collection just rundb.objects.dropIndexes()
from mongo shell and restart NodeBB, the new indexes will be created. You can check if everything is OK by runningdb.objects.stats()
. The output should look like the following{ ... "indexSizes": { "_id_": 433328, "expireAt_1": 310688, "_key_1_score_-1": 678608, "_key_1_value_-1": 629552 }, ... }
-
@baris I went ahead and followed your instructions, but have one question:
Is this necessary, or does it just free up a bit of space?
Suggested Topics
-
0 Votes5 Posts335 Views
-
0 Votes7 Posts734 Views
-
2 Votes5 Posts1002 Views
-
MongoDB Structure
Unsolved NodeBB Development0 Votes10 Posts5576 Views
-
0 Votes5 Posts3327 Views
Copyright © 2023 NodeBB | Contributors