You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/07/31 03:27:05 UTC

[jira] [Commented] (TRAFODION-1423) Indexes on trafodion should be created in aligned row format by default

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

ASF GitHub Bot commented on TRAFODION-1423:
-------------------------------------------

GitHub user selvaganesang opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/37

    [TRAFODION-1423] Indexes on trafodion should be created in aligned ro…

    …w format by default
    
    A new CQD TRAF_INDEX_ALIGNED_ROW_FORMAT is set to ON by default.
    The indexes are created in the aligned row format when this
    CQD is set to ON and the table has no serialized column.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/selvaganesang/incubator-trafodion index_format

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/37.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #37
    
----
commit 38327245fcf4d02191b3386f618d28d4397fbf59
Author: Selva Govindarajan <gs...@dev02.trafodion.org>
Date:   2015-07-31T01:14:42Z

    [TRAFODION-1423] Indexes on trafodion should be created in aligned row format by default
    
    A new CQD TRAF_INDEX_ALIGNED_ROW_FORMAT is set to ON by default.
    The indexes are created in the aligned row format when this
    CQD is set to ON and the table has no serialized column.

----


> Indexes on trafodion should be created in aligned row format by default
> -----------------------------------------------------------------------
>
>                 Key: TRAFODION-1423
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1423
>             Project: Apache Trafodion
>          Issue Type: Improvement
>          Components: sql-cmp, sql-cmu
>    Affects Versions: 2.0-incubating
>            Reporter: Selvaganesan Govindarajan
>            Assignee: Selvaganesan Govindarajan
>
> Currently indexes are created with the same row format as the table. However, indexes can be created in aligned row format independent of the table because the columns in the index table doesn't have any other column other than salt, index columns, and primary key of the table. These column values constitute the rowid. Index rows are always deleted and inserted and are never updated. Hence, it goes well to create index in aligned row format. In addition, index in aligned row format has the following advantages:
> - Reduced storage space for the index
> - Reduced block cache and memstore space at runtime



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