MongoDB's Touch Command
Join the DZone community and get the full member experience.Join For Free
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:
Published at DZone with permission of Eric Genesky. See the original article here.
Opinions expressed by DZone contributors are their own.