Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5267

Index organized table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      The purpose is to enable very fast scans for queries which use WHERE indexed_column_value='foo';

      We could borrow syntax from Oracle (with a small difference).

      CREATE TABLE blog_entries (
          posted_at timestamp,
          blog_id int
          author text,
          content text,
          PRIMARY KEY (posted_at)
      )
      ORGANIZATION INDEX ON (blog_id);
      

      In the background we could have a CF having only (key, indexed_value), in this case (posted_at, blog_id) so that we can maintain our index when we delete a row or change blog_id, and we would store other values within the index.

      Attachments

        Activity

          People

            Unassigned Unassigned
            stecak Srdjan Mitrovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: