...
This change introduces a new setParameter wiredTigerCursorCacheSize with a default value of 10,000. When this is set to 0, caching of WiredTiger cursors is disabled. There is an expected and slight performance degradation from the loss of the cache, but resource usage will be lower because we are not keeping as many cursors open at once. This parameter can be safely set at runtime without requiring a restart of the server. This will speed up dropDatabase, collection drop, and other operations.
glajchs commented on Tue, 23 Oct 2018 21:27:51 +0000: Thanks Dan! I swear I looked and googled for a while for that, and of course found it minutes after posting my comment . It works great! dan@10gen.com commented on Thu, 18 Oct 2018 20:24:58 +0000: glajchs, you should be able to set it like so: ./3.4.17/bin/mongod --setParameter wiredTigerCursorCacheSize=0 See the docs on the setParameter command glajchs commented on Thu, 18 Oct 2018 18:48:57 +0000: How do we use the new "wiredTigerCursorCacheSize" option? I'm using 3.4.17 (also tried 3.6.5) and I don't see the option to mongod, and if I provide it, it says it's invalid. bruce.lucas@10gen.com commented on Fri, 1 Jun 2018 12:27:59 +0000: This change introduces a new parameter wiredTigerCursorCacheSize with a default value of 10,000, which was previously hard-coded. xgen-internal-githook commented on Mon, 26 Feb 2018 23:02:15 +0000: Author: {'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'} Message: SERVER-33122 Add option to disable WiredTiger cursor caching (cherry picked from commit 0ef1e13db4f3d217ddc6de7ffc46842a4fc9889a) Branch: v3.4 https://github.com/mongodb/mongo/commit/42ac2a06ab567eb7439073f3a2205ded09c3e50a xgen-internal-githook commented on Mon, 26 Feb 2018 22:49:52 +0000: Author: {'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'} Message: SERVER-33122 Add option to disable WiredTiger cursor caching (cherry picked from commit 0ef1e13db4f3d217ddc6de7ffc46842a4fc9889a) Branch: v3.6 https://github.com/mongodb/mongo/commit/44342899b38d0aced0f498b961fa348ac2ea5a59 xgen-internal-githook commented on Mon, 26 Feb 2018 15:28:29 +0000: Author: {'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'} Message: SERVER-33122 Add option to disable WiredTiger cursor caching Branch: master https://github.com/mongodb/mongo/commit/0ef1e13db4f3d217ddc6de7ffc46842a4fc9889a