Skip to content
Discussion options

You must be logged in to vote

This is a really complex problem.

On the face of it, fairly trivial, because RavenDB is transactional. You can have an operation that increments a value in one document and use that as the id for another.

The reason this is complex is what happens when you are running in distributed environment. Consider the case where you have two operations to add an event to the same document, on two different nodes at the same time.
What do you expect will happen then?

A better question, however, is why do you want this? What is the importance of absolute serial values?

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@georgiosd
Comment options

@ayende
Comment options

@georgiosd
Comment options

@ItsRobbAllen
Comment options

@ayende
Comment options

Answer selected by ItsRobbAllen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants