NoSQL Zone is brought to you in partnership with:

Eric is the Editorial Manager at DZone, Inc. Feel free to contact him at egenesky@dzone.com Eric is a DZone Zone Leader and has posted 639 posts at DZone. You can read more from them at their website. View Full User Profile

MongoDB's Touch Command

03.08.2013
| 674 views |
  • submit to reddit
Here's a quick tip from the official MongoDB blog.  In MongoDB 2.2, the 10gen team added a touch command that loads data from the data storage layer into memory. . .
The touch command will load a collection’s documents, indexes or both into memory. This can be ideal to preheat a newly started server, in order to avoid page faults and slow performance once the server is brought into production. You can also use this when adding a new secondary to an existing replica set to ensure speedy subsequent reads.

 Read the full post here:

MONGODB TIP: THE TOUCH COMMAND

Reference: http://blog.mongodb.org/post/44706549534/mongodb-tip-the-touch-command