Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9117311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:52:15+00:00 2026-06-17T04:52:15+00:00

For MongoDB 2.2.2, is it possible to default all writes to safe, or do

  • 0

For MongoDB 2.2.2, is it possible to default all writes to safe, or do you have to include the right flags for each write operation individually?

If you use safe writes, what is the performance hit?

We’re using MongoMapper on Rails.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:52:16+00:00Added an answer on June 17, 2026 at 4:52 am

    If you are using the latest version of 10gen official drivers, then the default actually is safe, not fire-and-forget (which used to be the default).

    You can read this blog post by 10gen co-founder and CTO which explains some history and announces that all MongoDB drivers as of late November use “safe” mode by default rather than “fire-and-forget”.

    MongoMapper is built on top of 10gen supported Ruby Driver, they also updated their code to be consistent with the new defaults. You can see the check-in and comments here for the master branch. Since I’m not certain what their release schedule is, I would recommend you ask on MongoMapper mailing list.

    Even prior to this change you could set “safe” value on connection level in MongoMapper which is as good as global. Starting with 0.11, you can do it in mongo.yml file. You can see how in the release notes.

    The bottom line is that you don’t have to specify safe mode for each write, but you can still specify higher or lower than default durability for each individual write operation if you wish, but when you switch to the latest versions of everything, then you will be using “safe writes” globally by default.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In C# it is possible to use the MongoDB driver to define a custom
I know that it is possible read and write data from mongodb via hadoop.
In C# it is possible to use the MongoDB driver to define a custom
Is it possible to use MongoDB to store sessions in Symfony 2? If so,
Is it possible to use SQLite on Android and a NoSQL database like MongoDB
With currented build of Symfony 2.1 it should be possible to use MongoDB as
I am wondering if it is possible to use a mongodb geospatial index with
Is it possible to have one abstraction class to be used my mongoDB class
is it possible to use linqpad with MongoDB? or any other tool for that
is it possible to have One mongodb instance belong to one or more replica

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.