looking for ideas/alternatives to providing a page/item count/navigation of items matching a GAE datastore query

前端 未结 4 1027
被撕碎了的回忆
被撕碎了的回忆 2021-02-06 02:22

I like the datastore simplicity, scalability and ease of use; and the enhancements found in the new ndb library are fabulous.

As I understand datastore best practices, o

4条回答
  •  无人及你
    2021-02-06 03:09

    1. I notice that gmail is ready with some counts - it can tell you how many total emails you've received, and how many are in your inbox, etc - but on other counts, like full-text searches it says you're looking at "1-20 of many" or "1-20 of about 130". Do you really need to display counts for every query, or could you pre-calculate just the important ones?

提交回复
热议问题