官术网_书友最值得收藏!

Relational joins

In real-world applications, different pieces of data relate to each other in a variety of ways. Relational databases allow us to perform queries that make these relationships explicit; for instance, to retrieve a set of events whose location is in the state of New York (this is assuming events and locations are different record types). Cassandra, however, is not a relational database and does not support anything such as joins. Instead, applications using Cassandra typically denormalize data and make clever use of clustering in order to perform the sorts of data access that would use a join in a relational database.

For data sets that aren't already denormalized, applications can also perform client-side joins, which mimic the behavior of a relational database by performing multiple queries and joining the results at the application level. Client-side joins are less efficient than reading data that has been denormalized in advance, but they offer more flexibility. We'll cover both of these approaches in Chapter 6, Denormalizing Data for Maximum Performance.

主站蜘蛛池模板: 深圳市| 红安县| 南岸区| 宁德市| 界首市| 翁源县| 阿拉善右旗| 云龙县| 大方县| 宝兴县| 海晏县| 策勒县| 盈江县| 秦安县| 宣化县| 白河县| 磐安县| 喀什市| 冕宁县| 兴和县| 韩城市| 铜梁县| 桂阳县| 东平县| 于田县| 大方县| 花莲县| 中山市| 边坝县| 安陆市| 五大连池市| 长乐市| 长葛市| 沅陵县| 上犹县| 定远县| 民勤县| 祥云县| 肇东市| 库车县| 泸溪县|