- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 149字
- 2021-07-03 00:19:23
Efficient result ordering
It's quite common to want to retrieve a record set ordered by a particular field; for instance, a photo-sharing service will want to retrieve the most recent photographs in descending order of creation. Since sorting data on the fly is a fundamentally expensive operation, databases must keep information about record ordering persisted on disk in order to efficiently return results in order. In a relational database, this is one of the jobs of a secondary index.
In Cassandra, secondary indexes can't be used for result ordering, but tables can be structured such that rows are always kept sorted by a given column or columns, called clustering columns. Sorting by arbitrary columns at read time is not possible, but the capacity to efficiently order records in any way and to retrieve ranges of records based on this ordering is an unusually powerful capability for a distributed database.
- Dreamweaver CS3 Ajax網(wǎng)頁設(shè)計(jì)入門與實(shí)例詳解
- 輕松學(xué)C語言
- 教父母學(xué)會(huì)上網(wǎng)
- 圖形圖像處理(Photoshop)
- 數(shù)據(jù)庫原理與應(yīng)用技術(shù)學(xué)習(xí)指導(dǎo)
- 大數(shù)據(jù)技術(shù)入門(第2版)
- 單片機(jī)C語言應(yīng)用100例
- 智能生產(chǎn)線的重構(gòu)方法
- 從零開始學(xué)Java Web開發(fā)
- Java組件設(shè)計(jì)
- 項(xiàng)目實(shí)踐精解:C#核心技術(shù)應(yīng)用開發(fā)
- Learning iOS 8 for Enterprise
- 單片機(jī)C51應(yīng)用技術(shù)
- 智能小車機(jī)器人制作大全(第2版)
- 百度智能小程序:AI賦能新機(jī)遇