Oracle Coherence 能否支持像 MongoDb 这样的复杂查询?
在 Mongodb 中,您可以编写包含对象甚至嵌套对象的多个属性的查询。 oracle coherence 支持如此复杂的查询还是一个简单的 K/V 存储?
Mongodb 查询示例:
db.reports.find({profit:{$gt:99}, classification:'gas', name:/^USA/})
是否可以对一致性进行类似的查询?
In Mongodb, you can write queries that include multiple attributes of objects and even nested objects. Does oracle coherence support such complex queries or is it a simple K/V store?
Sample Mongodb query:
db.reports.find({profit:{$gt:99}, classification:'gas', name:/^USA/})
Is it possible to do similar queries on coherence?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以针对多个对象属性(包括嵌套对象)查询属于单个缓存的条目。
您可以使用过滤器API或一致性查询语言来做到这一点。
上述通过过滤器表达的查询类似于:
或使用 CohQL:
Yes, you can query entries belonging to a single cache against multiple object attributes (nested objects included).
You can either use Filter API or Coherence Query Language to do that.
The above query expressed via Filters would be something like:
or using CohQL: