RavenDB Sequential Number Generator

RavenDB has a great identity generator that is very fast to generate a new identity when you are inserting a ton of records at once. You can read more about it here: http://ravendb.net/documentation/docs-api-key-generation and http://codeofrob.com/archive/2010/05/16/ravendb-hilo-what-how-and-why.aspx However if you start and stop the RavenDB service, by restarting your computer, or recycling your app pool, the numbering of the identity generator skips, which for most people it really doesn’t matter. However sometimes sequential numbers really matter, for example in an invoice number you don’t want to skip a number because it can really screw up your accounting office? ...

January 19, 2012 · 2 min · 393 words · Nick Berardi