Does GQL support commonly available SQL Style aggregation?

南笙酒味 提交于 2019-12-30 04:59:04

问题


What I'm looking for a simple Aggregate Functions that are widely available in versions of SQL.

Simple things like Select Count(*) from table1 to the more complex.

If these are available, is there some documentation you could point me to?

Thanks - Giggy


回答1:


The SQL aggregate functions are not available. What you want to do is follow patterns like the sharded counters example: http://code.google.com/appengine/articles/sharding_counters.html which explain that instead of aggregating the values on queries, you want to keep the counters up to date when the values are inserted, updated, or deleted.

The example takes the concept a bit further than just maintaining the aggregates in that it will explain how to make it so that you can update the counters under high load where you have a limited amount of opportunity to write to your counters - so the shards help you distribute the load over several instances.




回答2:


No, it doesn't support them at all.



来源:https://stackoverflow.com/questions/739220/does-gql-support-commonly-available-sql-style-aggregation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!