Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Reorder key to enable tile/period range queries
Browse files Browse the repository at this point in the history
All columns on which we do point queries (e.g. pipelinekey,
externalsourceid) should come before the columns on which we do range
queries (e.g. tilex, periodstartdate).
  • Loading branch information
c-w committed Aug 16, 2017
1 parent 5025e3a commit e3b810a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/storage-ddls/cassandra-setup.cql
Expand Up @@ -171,7 +171,7 @@ CREATE TABLE computedtiles (
conjunctiontopic1 text,
conjunctiontopic2 text,
conjunctiontopic3 text,
PRIMARY KEY ((periodtype, conjunctiontopic1, conjunctiontopic2, conjunctiontopic3, tilez, period), tilex, tiley, periodstartdate, periodenddate, pipelinekey, externalsourceid)
PRIMARY KEY ((periodtype, conjunctiontopic1, conjunctiontopic2, conjunctiontopic3, tilez, period), pipelinekey, externalsourceid, tilex, tiley, periodstartdate, periodenddate)
);

CREATE TABLE popularplaces (
Expand Down

0 comments on commit e3b810a

Please sign in to comment.