Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14047

add primary key on WRITE_SET

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.0, 2.1.0
    • None
    • Transactions
    • None

    Description

      WRITE_SET table created in HIVE-13395 should some columns in the primary key. I expect most databases to organize the data in a b-tree with primary key as the index (or have an option to do so). That should help in reducing the search space for your prominent queries. As long as columns in the where clause match the prefix of the index, it should greatly reduce the search space.
      You can add a autoincrement column to keep it unique if necessary. MySQL (innodb) anyway ends up organizing data on an autoincrement column, which is useless for the queries (see post ).

      Attachments

        Issue Links

          Activity

            People

              steveyeom2017 Steve Yeom
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: