java - google app engine chunkSize & prefetchSize - 我在哪里可以阅读它的详细信息?

标签 java google-app-engine

关于这两个总和的所有信息:

chunkSize

Sets the chunk size. Please read the class javadoc for an explanation of how chunk size is used.

prefetchSize

Sets the number of entities to prefetch.

尝试查看 java docs ,并在 source code在 SVN 中。一点信息都没有!我的意思是,有关这两者的实际含义的信息。

好吧,prefetchSize 或多或少是清楚的——运行查询时获取了多少实体。
如果我的理解是正确的,例如如果我将查询的限制设置为 1000 并将 prefetchSize 设置为 1000,它会立即将它们全部读取到内存中。

chunkSize 呢?这是字节大小吗?实体数量?

low/high number 设置成这两个有什么影响?

最佳答案

您链接到的页面顶部说:

prefetchSize is the number of results retrieved on the first call to the datastore.

chunkSize determines the internal chunking strategy of the Iterator returned by PreparedQuery.asIterator(FetchOptions) and the Iterable returned by PreparedQuery.asIterable(FetchOptions).

诚然,

chunkSize 的描述有点含糊。它指定要在后续数据存储请求中获取的结果数(在使用第一个 prefetchSize 结果之后)。

关于java - google app engine chunkSize & prefetchSize - 我在哪里可以阅读它的详细信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6914069/

相关文章:

python - App Engine Python 开发服务器 + 任务队列 + 后端

python - Google App Engine 应用到私有(private)云

java - MapReduce 上 Cassandra 执行错误

java - public static int getCoins(int[][] map, int row, int col) 方法

java - 如何在Android中创建一个目录,并将图片保存到其中

java.lang.NoClassDefFoundError : com/google/common/base/MoreObjects when initializing pubsub on appengine 错误

java - App Engine Java Servlet 中收到 OAuthRequestException

java - XMLAdapter:可配置的日期格式

java - 有没有办法在使用 PrintWriter 时格式化小数点数字,而不使用 Java 中的 "Format"函数?

java - 如何在GAE java中为自定义用户数据库创建cookie?