[hibernate-dev] [OGM] MongoDB safe mode

Guillaume SCHEIBEL guillaume.scheibel at gmail.com
Wed Apr 25 11:59:45 EDT 2012


Emmanuel, we should also add a support of the WriteResult (whether or not
the safemode is set).
What do you think ?

Guillaume

2012/4/25 Guillaume SCHEIBEL <guillaume.scheibel at gmail.com>

> I can take it
>
>
> 2012/4/25 Emmanuel Bernard <emmanuel at hibernate.org>
>
>> BTW, by default MongoDB drivers do not wait for the operation to be
>> executed on the server to return. So you could insert a data that would
>> fail but not be noticed by the client.
>> To avoid that, you need to pass the safe=true option.
>>
>> I think we should offer an option to be safe. Should it be the default?
>>
>>    hibernate.ogm.mongodb.safe
>>
>> Any take on this one? It should be easy enough. Eventually we will want a
>> more fine grained setting but until then let's put that in place.
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
>


More information about the hibernate-dev mailing list