You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/05/20 08:18:00 UTC

[jira] [Work logged] (HIVE-24911) Metastore: Create index on SDS.CD_ID for Postgres

     [ https://issues.apache.org/jira/browse/HIVE-24911?focusedWorklogId=599672&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-599672 ]

ASF GitHub Bot logged work on HIVE-24911:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/May/21 08:17
            Start Date: 20/May/21 08:17
    Worklog Time Spent: 10m 
      Work Description: zeroflag commented on pull request #2090:
URL: https://github.com/apache/hive/pull/2090#issuecomment-844848865


   LGTM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 599672)
    Time Spent: 20m  (was: 10m)

> Metastore: Create index on SDS.CD_ID for Postgres
> -------------------------------------------------
>
>                 Key: HIVE-24911
>                 URL: https://issues.apache.org/jira/browse/HIVE-24911
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: command-output.txt
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> While investigating HIVE-24870, we found that during a long incremental replication, an SDS.CD_ID can improve the performance.
> It was tested by postgres like below:
> {code}
> CREATE INDEX IF NOT EXISTS "SDS_N50" ON "SDS" USING btree ("CD_ID");
> EXPLAIN (ANALYZE,BUFFERS,TIMING) select count(*) from "SDS" where "CD_ID"=THE_MOST_FREQUENTLY_USED_CD_ID_HERE;
> DROP INDEX IF EXISTS "SDS_N50";
> EXPLAIN (ANALYZE,BUFFERS,TIMING) select count(*) from "SDS" where "CD_ID"=THE_MOST_FREQUENTLY_USED_CD_ID_HERE;
> {code}
> Further results can be found in:  [^command-output.txt] 
> After some investigation, I found that this index is also part of the schemas for a very long time:
> orcale: HIVE-2928
> mysql: HIVE-2246
> mssql: HIVE-6862 (or earlier)
> ...except Postgres.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)