The speed of ListStreamKeyItems

+2 votes
Now I use Stream to store 1 Billion items, I want to know the relation of the number of items and the speed  of ListStreamKeyItems command.

As usual, more items , more slowly, is that right? If that is right, When I use ListStreamKeyItems command to find a item in the stream which contains 1 Billion items, how much time could it cost? (a range is ok)

Thanks a lot
asked Dec 20, 2017 by Leon Wang

1 Answer

0 votes

All APIs for querying stream items use efficient indexing. So the time will scale based on log(# of items). In other words, if you square the number of items, the lookup time will double. We can't give you an exact time measurement because it depends on so many other factors, but the point is that it's fast even for a billion items.

answered Dec 21, 2017 by MultiChain