title: Retrieving entire data collection from a RavenDB
body: <p>I have a requirement where I need to fetch the entire data collection <code>Users</code> from RavenDB and compare the retrieved result set with another set of data. There are close to 4000 records in this particular collection.</p>
  
  <p>Because Raven is Safe By Default, I keep getting an exception for either <code>Number of requests per session exceeded</code> or it returns the maximum 128 records.</p>
  
  <p>I don't want to set the property <code>Session.Advanced.MaxNumberOfRequestsPerSession</code> to a higher value. </p>
  
  <p>What query should I use to get the count of all the records? What is the ideal approach to handle this situation?</p>