Appengine搜索API vs数据存储 [英] Appengine Search API vs Datastore

查看:105
本文介绍了Appengine搜索API vs数据存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图决定是否应将App-engine Search API或Datastore用于App-engine Connected Android项目。 Google文档的唯一区别是

I am trying to decide whether I should use App-engine Search API or Datastore for an App-engine Connected Android Project. The only distinction that the google documentation makes is


...索引搜索可以找到不超过10,000个匹配文档。
App Engine Datastore可能更适用于
需要检索非常大的结果集的应用程序。

... an index search can find no more than 10,000 matching documents. The App Engine Datastore may be more appropriate for applications that need to retrieve very large result sets.

鉴于我已经非常熟悉数据存储:有人请帮助我,假设我不需要10,000个结果吗?

Given that I am already very familiar with the Datastore: Will someone please help me, assuming I don't need 10,000 results?


  • 是否有使用 Search API 与使用数据存储区进行查询的优势(根据上面的报价,使用另一个似乎是明智的)?就我而言,最终用户必须能够搜索,更新现有条目并创建新实体。例如,如果我的应用程序是书店,则用户必须能够添加新书籍,为现有书籍添加评论,搜索特定书籍。 我的数据结构是这样的:内容将由最终用户提供。文档vs数据存储实体:哪个更新更便宜? $$等。

  • 它们可以相互补充:数据存储和搜索API吗?有什么优势?为什么有人会考虑配对呢?什么是catch / cost?

  • Are there any advantages to using the Search API versus using Datastore for my queries (per the quote above, it seems sensible to use one or the other)? In my case the end user must be able to search, update existing entries, and create new entities. For example if my app is a bookstore, the user must be able to add new books, add reviews to existing books, search for a specific book.
  • My data structure is such that the content will be supplied by the end user. Document vs Datastore entity: which is cheaper to update? $$, etc.
  • Can they supplement each other: Datastore and Search API? What's the advantage? Why would someone consider pairing the two? What's the catch/cost?

推荐答案

关键的区别在于,对于数据存储区,您无法搜索内部实体。如果您有一本名为战争与和平的书,如果用户在搜索框中键入战争和平,则无法找到它。与评论等一样,因此,它不是您的真正选择。

The key difference is that with the Datastore you cannot search inside entities. If you have a book called "War and peace", you cannot find it if a user types "war peace" in a search box. The same with reviews, etc. Therefore, it's not really an option for you.

这篇关于Appengine搜索API vs数据存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆