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

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.

主站蜘蛛池模板: 搜索| 彰武县| 双峰县| 泗洪县| 辉县市| 龙海市| 常山县| 独山县| 阿拉尔市| 阿拉善左旗| 阜南县| 靖宇县| 大邑县| 漳州市| 定兴县| 西青区| 丰宁| 淮滨县| 舞钢市| 高邮市| 平定县| 广灵县| 怀化市| 革吉县| 汝州市| 长治市| 舟山市| 丰镇市| 沾化县| 崇文区| 景洪市| 普洱| 潼南县| 西峡县| 广河县| 洪洞县| 深泽县| 邢台县| 临江市| 定州市| 旬邑县|