- 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.
- Mastering Matplotlib 2.x
- 輕松學(xué)C語(yǔ)言
- 人工智能超越人類
- 精通MATLAB圖像處理
- Julia 1.0 Programming
- Zabbix Network Monitoring(Second Edition)
- 計(jì)算機(jī)系統(tǒng)結(jié)構(gòu)
- CompTIA Linux+ Certification Guide
- Learn CloudFormation
- 單片機(jī)技術(shù)一學(xué)就會(huì)
- Statistics for Data Science
- Godot Engine Game Development Projects
- AI的25種可能
- Learn Microsoft Azure
- 單片機(jī)C51應(yīng)用技術(shù)