title: RavenDB export\import data to SQL Server
body: <p>Simple question: How to export data from SQL Server to RavenDB?</p>
  
  <p>I wrote script which takes data from SQL Server and stores in raven but it works very slow. About 2500 inserts per second. </p>
  
  <p>EDIT:
  My code</p>
  
  <pre><code>    for (int i = 0; i &lt; count; i+=8196)
      {
          StoreInTaven(WordStats.Skip(i).Take(8196).Select(x =&gt; new KeyPhraseInfo(){
             Key = x.Word,
             Id = x.Id,
             Count = x.Count,
             Date = x.Date
          }));
          GC.Collect();
      }
  
  
  
  public static void StoreInTaven(IEnumerable&lt;KeyPhraseInfo&gt; wordStats)
  {
       using(var session = store.OpenSession())
       {
             foreach (var wordStat in wordStats)
             {
                session.Store(wordStat);
             }
  
             session.SaveChanges();
       }
  }
  </code></pre>