[SERVER-2023] touch command to pre-heat a collection Created: 28/Oct/10  Updated: 15/Aug/12  Resolved: 18/May/12

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Improvement Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Eric Milkie
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-4583 Would like to have a command for prim... Closed
Participants:

 Description   
{ touch : "foo" , indexes : <bool, defaults to true> }

does not look at records.

goes to each extent in data and index, and reads 1 byte per page

want to lock as little as possible

in read lock should get list of extents and sizes, and then unlock.
just needs to check db wasn't deleted in between each one.



 Comments   
Comment by auto [ 18/Jul/12 ]

Author:

{u'date': u'2012-07-13T09:44:06-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: SERVER-2023 touch command documentation
Branch: master
https://github.com/mongodb/docs/commit/e581a8e5ff46127645a07ff0286d574a575ddc21

Comment by auto [ 17/May/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-2023 new command "touch" - pretouches a collection, possibly with indexes
Branch: master
https://github.com/mongodb/mongo/commit/bc6a90645eb0153ff6d46b63d1368dc87d0bf331

Comment by Aaron Staple [ 29/Dec/11 ]

Re SERVER-4583, user wants to make sure that the index extents are pre heated efficiently, without scanning through the btree buckets as a tree data structure.

Comment by Eliot Horowitz (Inactive) [ 08/Nov/10 ]

http://linux.die.net/man/2/readahead

Generated at Thu Feb 08 02:58:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.