Skip to content

Commit

Permalink
Making use of GetChunkQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Jul 17, 2014
1 parent 809fcbb commit 6349782
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,12 @@ public List<Tuple<string, DateTime>> GetNextChunk(DateTime startSlice, out DateT
{
session.Advanced.AllowNonAuthoritativeInformation = true;

var query = session.Query<TimeoutData>("RavenTimeoutPersistence/TimeoutDataSortedByTime")
.Where(
t =>
t.OwningTimeoutManager == String.Empty ||
t.OwningTimeoutManager == Configure.EndpointName)
.Where(
t =>
t.Time > startSlice &&
t.Time <= now)
.OrderBy(t => t.Time)
.Select(t => new { t.Id, t.Time })
var query = GetChunkQuery(session)
.Where(
t =>
t.Time > startSlice &&
t.Time <= now)
.Select(t => new { t.Id, t.Time })
.Statistics(out stats);
do
{
Expand Down

0 comments on commit 6349782

Please sign in to comment.