I want to bulk load a few items from a list. The Caml is something like this:
<View><Query><Where> <Gt><FieldRef Name=\'ID\'/><Value Type=\'Number\'>{id}</Value></Gt> </Where></Query><RowLimit>5000</RowLimit></View>
where {id}
is the id from the last element of the previous query
This works fine on my testdata. But can I be sure that the ids from that query are always incremental? In other words: Is the default order always by id?
Or do I have to add an <OrderBy>
-statement?
The reason for asking is that an orderby
might affect the performance which I do not want.