Coursera 笔记

Module 03 · Introducing Apache Cassandra: An Open-Source NoSQL Database

Summary and Highlights摘要和重点

Coursera ↗

Congratulations! You have completed this lesson. At this point in the course, you know:  
恭喜!您已完成本课程。此时,您已经知道:

  • Cassandra supports built-in, collection, and user-defined data types. 
    Cassandra 支持内置、集合和用户定义的数据类型。
  • Both collection and user-defined data types offer a way to group and store data. 
    集合和用户定义的数据类型都提供了一种分组和存储数据的方式。
  • Keyspaces are defined before creating tables, and a keyspace can contain any number of tables. 
    在创建表之前定义键空间,一个键空间可以包含任意数量的表。
  • Common keyspace operations are CREATE KEYSPACE, ALTER KEYSPACE, and DROP KEYSPACE. 
    常见的键空间操作包括 CREATE KEYSPACE、ALTER KEYSPACE 和 DROP KEYSPACE。
  • A table’s metadata specifies the primary key and instructs Cassandra on distributing the table data at the cluster and node level. 
    一张表的元数据指定了主键,并指导 Cassandra 在集群和节点级别上分发表数据。
  • Cluster-level writes are sent to all the partition's replicas, irrespective of the consistency factor. 
    集群级别的写入会发送到该分区的所有副本,无论一致性因子如何。
  • By default, Cassandra doesn't perform a read before writes; therefore, INSERT and UPDATE operations behave similarly. 
    默认情况下,Cassandra 在写入之前不执行读取操作;因此,INSERT 和 UPDATE 操作表现相似。
  • Reads at cluster level are sent only to the number of replicas according to the consistency setting. 
    集群级别的读取仅发送到根据一致性设置指定的副本数量。
  • Reads follow the primary key column's order for best performance. 
    按照主键列的顺序读取可以获得最佳性能。