Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RavenDB Query does not return all records

Tags:

c#

ravendb

I am trying to get back all of the objects which I have saved in the database but not all of them come back:

var everything = session.Query<MyObject>()
                        .Where(x => !x.IsDeleted &&
                                     x.WorkflowStatus == WorkflowStatus.Published);

I have 206 objects in total, a good 80% of them fit the criteria above but only 127 are returned.

Can anyone see why?

like image 415
Subby Avatar asked Feb 16 '23 14:02

Subby


1 Answers

By default, queries return up to 128 records.

Use an explicit Take(n) to get more records.

like image 147
Diego Mijelshon Avatar answered Feb 23 '23 22:02

Diego Mijelshon