I created a simple application based on RavenDB, where I have 3,000 documents consisting of 15 string and int properties. One of the properties (CType) has the same value for all documents, and I use this field as a way to load all documents into an array using the Lucene query:
var store = new DocumentStore { Url = "http://localhost:8080", DefaultDatabase = "GIS" }; store.Initialize(); using (var session = store.OpenSession()) { var school = session.Advanced.LuceneQuery<School>() .Where("CType:School")
This code works in that it reads all 3,000 documents into an array, but it takes 5 seconds or more to complete the download.
Is there any way to do this faster?
source share