Each time you reduce you divide by the current count. You are driving multiple times.
--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Let's say you got two steps of reduce each reduce has 10 items and total of 100. The length of all titles is 10. So 10*10/10=10 life is good. Than 10*10/100=1 life isn't so good. I would add a field that is total/count and not assign total=total/count it is just not right.