Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1624

Comment on: "manual/faq/developers.txt"

    XMLWordPrintableJSON

Details

    Description

      Hey folks, suspect minor typo at the end of para #2 of the following section [... so that the above values resents a theoretical maximum].

      Sorry, can't fix - Git n00b.

      When does MongoDB write updates to disk?

      MongoDB flushes writes to disk on a regular interval. In the default configuration, MongoDB writes data to the main data files on disk every 60 seconds and commits the journal roughly every 100 milliseconds. These values are configurable with the journalCommitInterval and syncdelay.

      These values represent the maximum amount of time between the completion of a write operation and the point when the write is durable in the journal, if enabled, and when MongoDB flushes data to the disk. In many cases MongoDB and the operating system flush data to disk more frequently, so that the above values resents a theoretical maximum.

      However, by default, MongoDB uses a “lazy” strategy to write to disk. This is advantageous in situations where the database receives a thousand increments to an object within one second, MongoDB only needs to flush this data to disk once. In addition to the aforementioned configuration options, you can also use fsync and getLastError to modify this strategy.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            auto auto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 35 weeks ago