Comparing CosmosDB TOKEN vs. OFFSET+LIMIT based paging approaches

According to https://docs.microsoft.com/en-us/azure/cosmos-db/sql-query-offset-limit recommended approach is to use token based paging, while there is also possibility to use offset+limit (aka. skip+take) approach. Because our client considers the offset+limit approach as API standard, we were asked to do a speed comparison. Source code is available here, it runs very simple query Číst více…