[ 
https://issues.apache.org/jira/browse/CASSANDRA-6477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14348406#comment-14348406
 ] 

Sylvain Lebresne commented on CASSANDRA-6477:
---------------------------------------------

bq. IMO this should be the default, and WITH {{DENORMALIZED (...)}} syntax 
could optionally restrict it.

If you mean that {{CREATE GLOBAL INDEX on foo(bar)}} would be equivalent to 
denormalizing everything, then I might prefer being careful in the sense that 
we may (emphasis on "may") want this to later mean to create the global index 
as a true index, without anything denormalized. So my suggestion would be 
simply plainly reject a {{CREATE GLOBAL INDEX}} that doesn't have a 
{{DENORMALIZED}} clause (so no default in a way). Though I would agree that 
{{DENORMALIZED *}} should be there as it's probably what we want to recommend 
as de-facto default. 

> Global indexes
> --------------
>
>                 Key: CASSANDRA-6477
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6477
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API, Core
>            Reporter: Jonathan Ellis
>            Assignee: Carl Yeksigian
>              Labels: cql
>             Fix For: 3.0
>
>
> Local indexes are suitable for low-cardinality data, where spreading the 
> index across the cluster is a Good Thing.  However, for high-cardinality 
> data, local indexes require querying most nodes in the cluster even if only a 
> handful of rows is returned.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to