Hi,Is there a way to programmatically adapt the Max value of a Raven/Hilo/collectionname document?I know you can update the document by means of the RavenDb Studio, but when using RavenDb in embedded mode and without the possibility to run the studio (like in a hosting environment where you can only use port 80 for your website) that is not an option.Scenario is where you create documents with an assigned id because you generate them based on data from a SQL database and would like to keep the original Ids. Once the import is done, the current Hilo document for the given collection should have an appropriate Max value based on the highest existing id.If we don't adapt the max value, we get "PUT attempted on document 'collectionname/9999' using a non current etag" error, which is normal since the Hilo max value does not correspond to the actual stored documents.I know there are other scenarios where you import all existing data with freshly generated id's while storing the original ids and then update all the "bad references" to the freshly created id's after which the old ones can be removed, but I would like to check if there is an easier solution, by just adapting the Hilo value.Any idea how to adapt this value?Or is it possible to run the studio on the same port as the application where it is embedded in (port 80 to be precise -> website) so that we can adapt the document directly?Or should I keep on trying until it succeeds? Creating and deleting dummy documents until the Hilo value has reached to appropriate number?Thanks for any feedbackChristophe
Hi,Is there a way to programmatically adapt the Max value of a Raven/Hilo/collectionname document?I know you can update the document by means of the RavenDb Studio, but when using RavenDb in embedded mode and without the possibility to run the studio (like in a hosting environment where you can only use port 80 for your website) that is not an option.Scenario is where you create documents with an assigned id because you generate them based on data from a SQL database and would like to keep the original Ids. Once the import is done, the current Hilo document for the given collection should have an appropriate Max value based on the highest existing id.If we don't adapt the max value, we get "PUT attempted on document 'collectionname/9999' using a non current etag" error, which is normal since the Hilo max value does not correspond to the actual stored documents.I know there are other scenarios where you import all existing data with freshly generated id's while storing the original ids and then update all the "bad references" to the freshly created id's after which the old ones can be removed, but I would like to check if there is an easier solution, by just adapting the Hilo value.Any idea how to adapt this value?Or is it possible to run the studio on the same port as the application where it is embedded in (port 80 to be precise -> website) so that we can adapt the document directly?Or should I keep on trying until it succeeds? Creating and deleting dummy documents until the Hilo value has reached to appropriate number?Thanks for any feedback
Christophe--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.