问题标签 [nosql-aggregation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
postgresql - 从 PostgreSQL 到 Cassandra - 不支持聚合函数
我需要你的建议。我有一个在 PostgreSQL 上运行的应用程序,但需要很长时间才能恢复数据。我想使用 Cassandra,但注意到 CQL 不支持聚合。Hadoop可以做到这一点,还是我走错了路?此外,所有日期都存储在 Epoch 中,CQL 无法转换它们。
将在 PostGreSQL 上运行的应用程序转换为 Cassandra 的最佳方法是什么?
感谢您的任何建议。
elasticsearch - 按嵌套文档上的子/父数据聚合 ElasticSearch
如何使用嵌套文档查询嵌套文档并按子数据和父数据分组:我以这种方式查询以获取每个品牌和年份的总和,但我想按年份和品牌获取总和,所有我尝试返回错误结果:
我的映射是这样的,有一部分带有一些属性,并且在一系列线订单(嵌套)内,在每个线订单内有客户、供应商和订单日期(不是嵌套)(一对一):
redis - 使用 Redis 将值相加(聚合)
使用最新的 Redis,有没有办法用 Redis 聚合值。
例如。
我如何得到a + b + c?
我在网上到处搜索。
我不知道该怎么做。
如果我不能(轻松地)做到这一点,那么 Redis 对我来说是一个错误的地方来做我想做的事情。
非常感谢。
google-app-engine - Google Cloud DataStore. How to serve data?
Like many, I'm no new the NoSQL world. I did a lot of research, but I still lack only one point, which I can't find proper answer for.
Short description of system:
I'm building a system that collects Visitor's data on different websites. Each visit is an Entity in the datastore, with properties like device type, IP, time of visit..etc.
There will be millions of visits in the datastore.
My Question, is how do I serve this data to clients. My Data is setting in the datastore as "Visit" entities.
Now when a customer logs in, I don't want to show them millions of records. I want for example to show them general stats. Like number of visits on mobile device, number of visits from specific country in some time range, and stuff like that.
Now since I'm new to the NoSQL databases, I'm not sure how I should go around showing these stats in the clients' dashboard.
As I know, Datastore has no support for aggregates, or getting count of query results for example.
I looked at BigQuery, but BigQuery works on Datastore "backups", I need to serve data in real time, without needing to do backups manually.
Also I read about counters, and sharding counters, is this the proper approach? have a counter for each client for each property for each tracking group? and show the total numbers this way? Sounds like too much for a simple purpose.
Any input or explanation that can get me in the right direction would be highly appreciated.
Best Regards
node.js - 选择性地在猫鼬中找到
用户模式:
以上是用户模式的一个子部分。我想过滤掉用户ID不存在的朋友。现在我得到的是:
查询结果:
问题是我不想要这些{}
,只想要user_id
存在的数据。
使用的查询
我该怎么办?
php - 聚合聚合字段的总和
大家好,到目前为止,我正在尝试汇总展示次数字段的总展示次数总和,但我一直收到错误消息。我收到以下查询:
错误:
我不明白我在做什么错。
scala - 如何使用 Scala 计算 Hbase 表上的所有行
我们可以使用带有此命令的hbase shell来计算所有行数:count 'table_name', INTERVAL=> 1
或者只是简单的count 'table_name
。
但是如何使用Scala 编程来做到这一点?
c# - Cassandra:参数类型不匹配
我是 Cassandra 的新手,并使用 linq 为我的 Cassandra 数据库创建了一个通用存储库。对于我的 Single() 方法,我将 where 条件作为参数传递。
这是我的单一方法:
这是我用来查询 cassandra 数据库的 linq 代码
这是调用单个方法的方法
我不断收到“参数类型不匹配”的“System.AggregateException”,我对这可能来自哪里感到困惑。
数据库表列:
和 c# poco:
和例外:
我错过了什么。我审查了文档。以及 Cassandra 和 c# 之间的映射规则,一切似乎都是正确的。
couchbase - 在单个 n1ql 查询中从选定文档中获取所有相关文档和聚合数据
我刚开始使用沙发底座,我有以下要求
我有以下文档:
推荐文件
现在我需要拥有特定用户 ID 的所有推荐文档,并且我还想要像这样的所有推荐金额的总和
我想输出类似或类似的东西。我试过用嵌套但没有得到想要的输出
先感谢您
mongodb - MongoDB 查询在 NumberLong() 字段上不返回任何结果
我有大约 1100 万条具有以下特征的记录:
我正在尝试检查某些电话号码是否重复。
我可以对除“PHONE”之外的每个字段执行查询和聚合,例如对“TYPE”的聚合:
回报:
但是“电话”上的聚合:
仅返回数据库中电话号码的总数,而不是找到每个电话号码的次数:
我在这里想念什么?提前致谢。