Any way I can get the every Nth doc in RavenDB?
I tried something like this, as seen on here:
Query<MyDoc, MyDoc_Index>().Where((x, i) => i % nStep == 0);
I get the following error:
Could not understand how to translate '(i % 1000)' to a RavenDB query. Are you trying to do computation during the query? RavenDB doesn't allow computation during the query, computation is only allowed during index. Consider moving the operation to an index.
I don't have a problem adding a reduce to my index if I have to. Thanks!