diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-04-14 19:42:53 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-04-14 19:42:53 -0400 |
commit | 7804e0fa2514b0b423e6e1d8ad4a4539a5118950 (patch) | |
tree | 04c63e4f4e86c07a5612ff301f8adf1af2a27f2d /src/docs/tune-read-only.dox | |
parent | 7823697d195fc81bc9089d68ccd18ec5a1c8801d (diff) | |
download | mongo-7804e0fa2514b0b423e6e1d8ad4a4539a5118950.tar.gz |
Split the tuning page sections into individual pages, add a perf-tuning
section to the "Writing WiredTiger applications" page.
Diffstat (limited to 'src/docs/tune-read-only.dox')
-rw-r--r-- | src/docs/tune-read-only.dox | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/docs/tune-read-only.dox b/src/docs/tune-read-only.dox new file mode 100644 index 00000000000..93adafcf955 --- /dev/null +++ b/src/docs/tune-read-only.dox @@ -0,0 +1,22 @@ +/*! @page tune_read_only_objects Read-only objects + +Cursors opened on checkpoints (either named, or using the special "last +checkpoint" name "WiredTigerCheckpoint") are read-only objects. Unless +memory mapping is configured off (using the "mmap" configuration string +to ::wiredtiger_open), read-only objects are mapped into process memory +instead of being read through the WiredTiger cache. Using read-only +objects where possible minimizes the amount of buffer cache memory +required by WiredTiger applications and the work required for buffer +cache management, as well as reducing the number of memory copies from +the operating system buffer cache into application memory. + +To open a named checkpoint, use the configuration string "checkpoint" +to the WT_SESSION::open_cursor method: +@snippet ex_all.c open a named checkpoint + +To open the last checkpoint taken in the object, use the configuration +string "checkpoint" with the name "WiredTigerCheckpoint" to the +WT_SESSION::open_cursor method: +@snippet ex_all.c open the default checkpoint + + */ |