You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 441e8dc
Browse filesBrowse the repository at this point in the historyBrowse files
Fix: #54 Fix pagination in GetStreamsToSnapshot for large datasets
Address issue #54 in NEventStore.Persistence.Sql where
GetStreamsToSnapshot failed when the number of streams
exceeded PageSize. Updated SQL queries to include
`C.StreamId > @StreamId` for proper pagination.
Added `_lastStreamId` tracking in tests to validate the
pagination logic. Introduced new test cases to ensure
`GetFrom` and `GetFromAsync` methods handle large datasets
without crashing.
Updated SQL dialect resources and persistence engine
methods to support the new pagination logic.
query.AddParameter(_dialect.StreamId,String.Empty,DbType.AnsiString);// (NEventStore.Persistence.Sql #54) to define the parameter for paging
262
263
returnquery.ExecutePagedQueryAsync(
263
264
statement,(q,s)=>q.SetParameter(_dialect.StreamId,_dialect.CoalesceParameterValue(s.StreamId()),DbType.AnsiString),// todo: I'm not sure this is used, the query does not have a "StreamId" parameter
0 commit comments