CQL IN 语法的应用方法
来源:互联网 发布:linux cpuinfo 编辑:程序博客网 时间:2024/06/09 23:09
In mypostabout the CQL WHERE
clause I didn’t fully cover when the IN operator is supported and how it differs from the = operator. Based on the comments on that post and some questions I’ve gotten from people who read the post, I think it’s worth going into some detail about the IN operator.
Here’s where the IN operator is supported:
- The last column in the partition key, assuming the = operator is used on the first N-1 columns of the partition key
- The last clustering column, assuming the = operator is used on the first N-1 clustering columns and all partition keys are restricted
- The last clustering column, assuming the = operator is used on the first N-1 clustering columns and ALLOW FILTERING is specified
注意: IN的操作开销比普通=操作开销大很多,几乎是成指数倍的。假设factor=3 , 20个nodes, 采用Quramexi设计,select * from table where primary key in (1,2,3), 需要查6个nodes, 而如果是直接=只要查3个node即可。
0 0
- CQL IN 语法的应用方法
- Neo4j的CQL语法
- Cassandra CQL的限制
- cql
- CQL
- Neo4j CQL-(18)IN操作符
- datastax cassandra 有用的cql
- Cassandra 的 cql入门使用
- neo4j 一些常用的cql
- JS中的“theElement in dangerousElements“中in方法的应用
- JavaIO流基础语法及方法的应用
- Delphi中For In 语法应用实例
- 小语法的应用
- 点语法的应用
- between与in的语法
- 分部方法的语法
- Makefile特殊语法的应用
- LINQ的基本应用语法
- 网络请求配置
- Git添加空文件夹的方法
- poj 1904 King's Quest 【建模 求解SCC】
- 【学习日记】集合框架知识点总结(1)--Collection
- struts2(1)
- CQL IN 语法的应用方法
- Unity3D笔记第六天——脚本常用核心类
- Fragment学习笔记
- HDU 1710 Binary Tree Traversals
- 第二周
- MySQL BLOB 类型介绍
- curl 使用详解
- Jmeter实现webservice协议的脚本
- 斯大林帝国的杀手锏与俄罗斯复兴的真正大王牌