Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

MongoDB's Touch Command

DZone's Guide to

MongoDB's Touch Command

· Database Zone
Free Resource

Running out of memory? Learn how Redis Enterprise enables large dataset analysis with the highest throughput and lowest latency while reducing costs over 75%! 

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

Running out of memory? Never run out of memory with Redis Enterprise databaseStart your free trial today.

Topics:

Published at DZone with permission of Eric Genesky. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}