By default, a stream is trimmed when the number of items is greater than 100. But this number is hard coded and should be customisable from userland.