I need to read the stream that has X (potentially hundreds) messages from the very beginning.
I need to use multiple liststreamitems queries, what parameter values of start/count should I use?
I'm currently using count=200, start=100 to get last messages, but I can't figure the right parametrs for my algorithm to read the stream sequentially from the very start.
EDIT:
I followed the paging comment and made a small experiment, I published 50 messages on the stream with values 00,01,02,...,49
I ran the stream reading with different values of start/count and this is the result:
========count=10,start=0
[]
========
========count=10,start=10
[40,41,42,43,44,45,46,47,48,49,]
========
========count=10,start=20
[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,]
========
========count=10,start=30
[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,]
========
========count=10,start=40
[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,
40,41,42,43,44,45,46,47,48,49,]
========
========count=10,start=50
[00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,
30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,]
========
Are start/count defined in the wrong order?
Even if the are reversed, why does it start from 10 latest messages instead of 10 oldest messages. How can I start from the oldest ones and go up from there?