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

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.

主站蜘蛛池模板: 镇安县| 特克斯县| 嘉祥县| 临颍县| 汽车| 池州市| 台东市| 曲沃县| 玉山县| 醴陵市| 丹巴县| 婺源县| 庆云县| 甘洛县| 牡丹江市| 石屏县| 古浪县| 江口县| 苍梧县| 锡林郭勒盟| 铅山县| 呼伦贝尔市| 松江区| 新疆| 宝兴县| 峨眉山市| 泸溪县| 东山县| 固阳县| 扎鲁特旗| 石景山区| 罗甸县| 吴江市| 深水埗区| 廉江市| 伊通| 三门峡市| 河间市| 即墨市| 灌阳县| 长白|