new design strategy of page Split function

来源:互联网 发布:java map value 求和 编辑:程序博客网 时间:2024/05/29 19:00



take timeStamp as the sort strategy:


For the page split function, client side transfer LastItemKey The API return the list according to CreatedStamp desc.

Backend to calc the related CreatedStamp via LastItemKey.

Just to scan those record whose CreatedStamp is older (smaller) than above stamp, and send them out.

Usually cliend side just scroll up to get those older items (transfer the final item Key of the array); but if to get new items, just pull down (LastItemKey == null).


If firstly call the API, we can transfer the PageSize as 3 (eg); Secondly, we can transfer 20; If more, we even can transfer 100.

0 0
原创粉丝点击