由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 这个cassandra paging的解决方案怎么样? (转载)
相关主题
请教 sql server index问题DB2 identity column question
SQL 2000 create index 問題两个列联合作Primary Key,还需要单独建index吗?
Oracle Group and Index questionquery: in sql server 2005
被人鄙视了Join optimization
question about aspxMySQL 5.0 cluster question
indexing就是设置primary key吗?如何决定index
SQL 2008 Create Index vs Rebuild Index (Alter Index)Help! A cluster method in SQL
小声问一句问个Index的问题
相关话题的讨论汇总
话题: page话题: column话题: number话题: paging话题: cassandra
进入Database版参与讨论
1 (共1页)
f*****e
发帖数: 2992
1
【 以下文字转载自 DataSciences 讨论区 】
发信人: fatalme (don't ever give it up), 信区: DataSciences
标 题: 这个cassandra paging的解决方案怎么样?
发信站: BBS 未名空间站 (Fri Sep 26 15:52:43 2014, 美东)
As paging is a big issue of Cassandra. I have a strategy to page using
secondary index: Add a column "page_number" corresponding to each column you
want to sort and page, create an index on the "page_number" column or just
use it as the clustering column. The "page_number" is a good candidate for
indexing, since it has low cardinality: every entry in the same page has the
same page number. If there are 100 entries in one page, then there are 100
entries with the same page number. Thus is low cardinality. We can order the
entries according to each column and set the corresponding "page_number".
You can retrieve one page and do the corresponding sorting and send to
display. Is this a good way or not?
1 (共1页)
进入Database版参与讨论
相关主题
问个Index的问题question about aspx
为什么微软专家给一个4x5的只读小表建64个Index(完全相同的)?indexing就是设置primary key吗?
关于MSSQL, 问几个比较土的问题SQL 2008 Create Index vs Rebuild Index (Alter Index)
common misconception in Oracle小声问一句
请教 sql server index问题DB2 identity column question
SQL 2000 create index 問題两个列联合作Primary Key,还需要单独建index吗?
Oracle Group and Index questionquery: in sql server 2005
被人鄙视了Join optimization
相关话题的讨论汇总
话题: page话题: column话题: number话题: paging话题: cassandra