cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Stepura (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7458) functional indexes
Date Wed, 01 Oct 2014 02:44:34 GMT

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

Mikhail Stepura commented on CASSANDRA-7458:
--------------------------------------------

A couple of questions about the scope of this ticket:
# Do we want to support functions with arbitrary number of arguments {{f(x1,x2,...,column,...,xn)}}
or just simple single argument functions {{f(column)}}?
# Do we want to allow more than 1 index per a column?

> functional indexes
> ------------------
>
>                 Key: CASSANDRA-7458
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7458
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API, Core
>            Reporter: Jonathan Ellis
>            Assignee: Mikhail Stepura
>             Fix For: 3.0
>
>
> Indexing information derived from the row can be powerful.  For example, using the hypothetical
{{extract_date}} function,
> {code}
> create table ticks (
>     symbol text,
>     ticked_at datetime,
>     price int,
>     tags set<text>,
>     PRIMARY KEY (symbol, ticked_at)
> );
> CREATE INDEX ticks_by_day ON ticks(extract_date(ticked_at));
> {code}
> http://www.postgresql.org/docs/9.3/static/indexes-expressional.html



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

Mime
View raw message