Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
foreach (var batch in pageVerIds.Batch(128)){ using (var pageSession = readSession.Site.ContentStore.OpenReadSession(readSession.OperatingUser)) { var pageVersionsByPageId = new Dictionary<string, PageVersion>(); using (var ravenSession = (pageSession.Site.ContentStore as ContentStore)._Store.OpenSession()) { var q = ravenSession.Query<PageVersion>("Raven/DocumentsByEntityName").Where(doc => doc.Id.In(batch)); using (var enumerator = ravenSession.Advanced.Stream(q)) while (enumerator.MoveNext()) if (!pageVersionsByPageId.ContainsKey(enumerator.Current.Document.XID)) pageVersionsByPageId.Add(enumerator.Current.Document.XID, enumerator.Current.Document); } }}To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
for (int ix = 0; ix < 100000; ix += 128){ using (var ravenSession = (store as ContentStore)._Store.OpenSession()) { var pageVersionsByPageId = new Dictionary<string, PageVersion>(); var q = ravenSession.Query<PageVersion>("Raven/DocumentsByEntityName").Where(doc => doc.Id.StartsWith("PageVersion")).Skip(ix).Take(128); using (var enumerator = ravenSession.Advanced.Stream(q)) while (enumerator.MoveNext()) if (!pageVersionsByPageId.ContainsKey(enumerator.Current.Document.XID) && enumerator.Current.Document is PageVersion) pageVersionsByPageId.Add(enumerator.Current.Document.XID, enumerator.Current.Document); }}To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Hibernating Rhinos Ltd 
Michael Yarichuk l RavenDB Core Team
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Hibernating Rhinos Ltd 
Michael Yarichuk l RavenDB Core Team
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
2018-01-02 15:49:14.5635,Raven.Storage.Esent.TransactionalStorage,Error,Unexpected error occurred while terminating Esent Storage. Ignoring this error to allow to shutdown RavenDB instance.,"Microsoft.Isam.Esent.Interop.EsentTooManyActiveUsersException: Too many active database users at Microsoft.Isam.Esent.Interop.Api.JetTerm2(JET_INSTANCE instance, TermGrbit grbit) at Raven.Storage.Esent.TransactionalStorage.<Dispose>b__39_0()"2018-01-02 15:49:14.5635,Raven.Storage.Esent.TransactionalStorage,Warn,"Will now attempt to perform an abrupt shutdown, because asking nicely didn't work. You might need to run defrag on the database to recover potentially lost space (but no data will be lost).",2018-01-02 15:49:14.5635,Raven.Storage.Esent.TransactionalStorage,Fatal,"Couldn't shut down the database server even when using abrupt, something is probably wrong and you'll need to restart the server process to access the database","Microsoft.Isam.Esent.Interop.EsentTooManyActiveUsersException: Too many active database users at Microsoft.Isam.Esent.Interop.Api.JetTerm2(JET_INSTANCE instance, TermGrbit grbit) at Raven.Storage.Esent.TransactionalStorage.<Dispose>b__39_0()"Kyle
</
--