title: RavenDB Query<T> Always Faster Than Load<T>
body: <p>On the RavenDB site it says "Use Load over Query when you know the documents Id". In my tests on a simple collection of approximately 1,500 objects Load is always slower. Why?</p>
  
  <p>Load:</p>
  
  <pre><code>var doc = session.Load&lt;Document&gt;("Documents/123");
  </code></pre>
  
  <p>Query</p>
  
  <pre><code>var doc = session.Query&lt;Document&gt;().Where(x =&gt; x.Id == "123").SingleOrDefault();
  </code></pre>
  
  <p>In a test, retrieving every document, the average Query time was 66 milliseconds vs 137 for the Load. The RavenDB instance is located in another office hence the high times. Regardless should Load not always be faster?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>This is statement I'm referring to <a href="http://ravendb.net/kb/31/my-10-tips-and-tricks-with-ravendb" rel="nofollow">http://ravendb.net/kb/31/my-10-tips-and-tricks-with-ravendb</a>. Tip #4. Is it wrong?</p>