cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-6477) Global indexes
Date Thu, 05 Mar 2015 08:41:42 GMT


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:
>             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

View raw message