-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcassandra
More file actions
33 lines (27 loc) · 721 Bytes
/
cassandra
File metadata and controls
33 lines (27 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
keyspace -> table -> partition
Possible Consitency
Quarum - most the nodes have the write
All - All the nodes responsible have the write
Any
One
Two
Three
nodetool repair (maintenance for cluster?)
Eventual consitency Database
For strong consitency you need this formual:
(Write consitency + Read Consitency) > REplication Factor
Consitency with multiple Data Centers
EACH_QUORUM
LOCAL_QUORUM
LOCAL_ONE
CQL
numeric data types
bigint, decima, doulb, float, int, varint
strings
ascii, text, varchar (last two are the same)
timestamp, timeuuid
Boolean, uuid, inet, blob
No hypehns in keynames
no spaces in keynames
double quotes for intial digist
mixed case alsso requires quotes