Aerospike Nodejs客户端查询处理

2024-04-20 07:36:08 发布

您现在位置:Python中文网/ 问答频道 /正文

当前显示的示例是流:http://www.aerospike.com/docs/client/nodejs/usage/query/aggregate.html

有没有一种更简单的方法/方法可以:

  options = filters: [ filter.equal('from_user', user_id) or filter.equal('to_user', user_id) ]
  q = client.query('polls', 'chat', options)
  allRecordsListJson= q.execute()

这可以在python和其他客户机中完成。你知道吗


Tags: 方法comclientidhttp示例docswww
1条回答
网友
1楼 · 发布于 2024-04-20 07:36:08

Aerospike还不支持带有和/或连词的mutliple where子句的查询。所以现在,您只需要使用一个原因,在客户机级别进行过滤,或者使用流聚合并编写LUA代码来进行过滤并传递参数。你知道吗

相关问题 更多 >