How outdated are my performance in Raven?

Is there a way to query the RavenDB document store and find out how deprecated any expired indexes are?

Essentially, what I would like to do is return the results to the user, but also give them some idea of ​​how much indexing is left to complete.

This would be good in big data import scenarios.

+4
source share
1 answer

Of course you can do it like this:

RavenQueryStatistics stats; session.Query<Posts>() .Statistics(out stats) .Where(x=>x.Date <= DateTime.Today) .ToList(); 

Statistics contain whether the index is outdated or not, and there is a property that tells you what is the latest update date for the index.

+5
source

Source: https://habr.com/ru/post/1394887/


All Articles