title: SQL Server Vs MongoDB : Speed test?
body: <p>MongoDB: </p>
  
  <pre><code>var x = nosql.GetRecords&lt;Event&gt;(p =&gt; p._Data == "rawhix", 0, 12222);
  // ICursor&lt;T&gt; GetRecords&lt;T&gt;(expression, skip, limit);
  </code></pre>
  
  <p>SQL: </p>
  
  <pre><code>SqlDataReader dr = SqlHelper.ExecuteReader("Select Top(12222)* From NewsFeed WHERE _Data = 'dddd'");
  </code></pre>
  
  <p>the MongoDB contains 1000000 record which are the same in the SQL . <br> 
  the data stored as the following:</p>
  
  <pre><code>Id = 1 , _Data = 1abc
  Id = 2 , _Data = 2bc 
  ... etc
  </code></pre>
  
  <p><code>Event</code> class  : </p>
  
  <pre><code>Class Event =&gt; int Id =&gt; string _Data 
  </code></pre>
  
  <p>when I run the code the result is: 
  <br> Mongo : 580ms <br>
  SQL : 102ms <br>
  <br>Should I do anything to fix this !! because the mongo was always faster except this test !?!</p>