title: RavenDB Read Performance
body: <p>(Maybe I am doing something wrong but) I am getting awful read performance from RavenDB!</p>
  
  <p>This is my document:</p>
  
  <pre><code>public class Location
  {
      public Guid Id { get; set; }
      public string Description { get; set; }
      public string DescriptionFa { get; set; }
      public double Longitude { get; set; }
      public double Latitude { get; set; }
  }
  </code></pre>
  
  <p>And this is my code:</p>
  
  <pre><code>using (var session = documentStore.OpenSession())
  {
      session.Advanced.MaxNumberOfRequestsPerSession = int.MaxValue;
  
      var page = 1024;
      var pageCount = 0;
  
      while (true)
      {
          var q = session.Query&lt;Location&gt;().OrderBy(l =&gt; l.Id).Skip(pageCount * page).Take(page).ToList();
          pageCount++;
          readCount += q.Count;
  
          if (q.Count &lt; page)
          {
              break;
          }
      }
  }
  </code></pre>
  
  <p>I have 2100000 documents of this kind in the database. There is a spatial index on Longitude and Latitude. I want to read them all and export them into a text file.</p>