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

Secondary indexes

A secondary index, commonly referred to as an index in the context of a relational database, is a structure allowing efficient lookup of records by some attribute other than their primary key. This is a widely useful capability; for instance, when developing a blog application, you would want to be able to easily retrieve all of the posts written by a particular author. Cassandra supports secondary indexes; while Cassandra's version is not as versatile as indexes in a typical relational database, it's a powerful feature in the right circumstances. A query on a secondary index can perform poorly in certain cases; hence, it should be used sparingly and only in certain cases, which we will touch upon later in Chapter 5, Establishing Relationships.

主站蜘蛛池模板: 广汉市| 博爱县| 临桂县| 望都县| 古田县| 洛宁县| 罗源县| 军事| 涿鹿县| 怀来县| 精河县| 石阡县| 苍梧县| 灌南县| 库伦旗| 芷江| 中宁县| 鄱阳县| 达拉特旗| 通榆县| 临安市| 板桥市| 任丘市| 宁明县| 鄂伦春自治旗| 临城县| 新田县| 葵青区| 中牟县| 潼南县| 正宁县| 德化县| 宝兴县| 通化市| 沅江市| 彭州市| 沙坪坝区| 松溪县| 定陶县| 浮山县| 稷山县|