[RavenDB] Further Explanation

7 views
Skip to first unread message

Matt

unread,
May 22, 2010, 3:11:11 PM5/22/10
to ravendb
Raven supports optimistic concurrency to avoid overwriting other
people's changes. By default, this behavior is turned off. You can
turn it on by setting the IDocumentSession.UseOptimisticConcurrency
property to true. When that is enabled, attempting to write to a
document that was modified by another user will raise a
ConcurrencyException.


Can you elaborate further? What field/property does it use for version
id/timestamp?

Matt

unread,
May 22, 2010, 3:12:38 PM5/22/10
to ravendb
Ah this is where etag comes in?

So if I set this to true the client will pull the doc with an etag,
and submit the update request with the etag as a condition to be meet
before update?

Ayende Rahien

unread,
May 22, 2010, 3:16:38 PM5/22/10
to rav...@googlegroups.com
This is the Etag, which is stored in the metadata.

Ayende Rahien

unread,
May 22, 2010, 3:16:45 PM5/22/10
to rav...@googlegroups.com
Yes
Reply all
Reply to author
Forward
0 new messages