I'm evaluating RavenDB for a new project.
If i create 100 entities i got great consecutive ids like :
But if i build a new DocumentStore instance (after App Restart) and try to create new entities i got strange ids like this :
Any help ?
Note : I'm using Embedded Server with ASP.NET MVC 3
This is by design - new HiLo keys are generated whenever you create a DocumentStore instance, so the gaps you are seeing are the unused ids from the other session.
Why do you care for consecutive ids?
This may be a good read on the subject, too: http://groups.google.com/group/ravendb/browse_thread/thread/3dbcacbc8b366ff8/