You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mostafa Mokhtar (JIRA)" <ji...@apache.org> on 2014/08/19 21:33:18 UTC
[jira] [Commented] (HIVE-7784) Created the needed indexes on
Hive.PART_COL_STATS for CBO
[ https://issues.apache.org/jira/browse/HIVE-7784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14102698#comment-14102698 ]
Mostafa Mokhtar commented on HIVE-7784:
---------------------------------------
[~ashutoshc]
Code review link https://reviews.apache.org/r/24861/diff/#
> Created the needed indexes on Hive.PART_COL_STATS for CBO
> ----------------------------------------------------------
>
> Key: HIVE-7784
> URL: https://issues.apache.org/jira/browse/HIVE-7784
> Project: Hive
> Issue Type: Bug
> Components: CBO
> Affects Versions: 0.14.0
> Reporter: Mostafa Mokhtar
> Assignee: Mostafa Mokhtar
> Fix For: 0.14.0
>
> Attachments: HIVE-7784.1.patch, HIVE-7784.2.patch
>
>
> With CBO we need the correct set of indexes to provide an efficient Read/Write access.
> These indexes improve performance of Explain plan and Analyzed table by 60% and 300%.
> {code}
> MySQL
> CREATE INDEX PART_COL_STATS_N50 ON PART_COL_STATS (DB_NAME,TABLE_NAME,COLUMN_NAME) USING BTREE;
> MsSQL
> CREATE INDEX PART_COL_STATS_N50 ON PART_COL_STATS (DB_NAME,TABLE_NAME,COLUMN_NAME);
> Oracle
> CREATE INDEX PART_COL_STATS_N50 ON PART_COL_STATS (DB_NAME,TABLE_NAME,COLUMN_NAME);
> Postgres
> CREATE INDEX "PART_COL_STATS_N50" ON "PART_COL_STATS" USING btree ("DB_NAME","TABLE_NAME","COLUMN_NAME");
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)