We are using a Primary-Secondary-Secondary setup in MongoDB. Recently upgraded from 3.X to 4.2.18 but it seems “secondaryIndexPrefetch” is already obsolete and is the reason why MongoDB fails to start. What is the equivalent of “secondaryIndexPrefetch: all”(a config from 3.X version) in 4.2.18 version? Also, what value the equivalent should be set to?
Hi @Blaise,
The secondaryIndexPrefetch
configuration was specific to MMAPv1 and was removed (along with the deprecated MMAPv1 storage engine) in MongoDB 4.2. You can remove this line from your configuration file as it is no longer relevant and there is no equivalent needed for WiredTiger.
Note: the default value for secondaryIndexPrefetch
was all
, so your previous configuration did not need to set this explicitly.
Regards,
Stennie
1 Like
Cool. Thanks for the help Stennie!
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.