Comment 0 for bug 266907

Revision history for this message
Brad Crittenden (bac) wrote : Slicing of Storm result sets override previous slices

Code in a database class like:
return self.all_active[:quantity]

will subsequently be batched by the API. The batching code causes the result set to get sliced again, which ignores the previous slice. So, if quantity=3 and the batching size=5 then the batch returned will actually have 5 items.