cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Ristić <alan.ris...@gmail.com>
Subject What is the default 'key_validation_class' on secondary INDEX(es)
Date Mon, 28 Jan 2013 10:57:53 GMT
I'm just curious for C* v1.2..

a) Does automatic secondary INDEX CF defaults to primary CF
key_validation_class<http://www.datastax.com/docs/1.2/configuration/storage_configuration#key-validation-class>
 ('user_id' in example) or it decides by column type (varchar in 'email'
case) what key_validation_class should be ?
*I suppose it defaults.*

example:
CREATE TABLE users (
  user_id uuid PRIMARY KEY,
  created_at timestamp,
  email varchar,
  ...
) WITH
     comment='Registered user';

CREATE INDEX ON users (email);

*b) And if yes can it be changed on CREATE INDEX? *
*I suppose no.*

ps: I know that sec. index in example is not optimal ;)

Tnx,
*Alan Ristić*

 *t*: @alanristic <http://twitter.com/alanristic>
*m*: 040 423 688

Mime
View raw message