[ https://issues.apache.org/jira/browse/HIVE-19605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16484687#comment-16484687 ]
Todd Lipcon commented on HIVE-19605: ------------------------------------ Seems the slow query on get_table is due to the "initialization" queries in ensureDbInit(). This is worked around by HIVE-19310. However, the API calls that actually are meant to fetch column stats are still slow and this should be fixed for their sake. > TAB_COL_STATS table has no index on db/table name > ------------------------------------------------- > > Key: HIVE-19605 > URL: https://issues.apache.org/jira/browse/HIVE-19605 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Todd Lipcon > Assignee: Vihang Karajgaonkar > Priority: Major > > The TAB_COL_STATS table is missing an index on (CAT_NAME, DB_NAME, > TABLE_NAME). The getTableColumnStatistics call queries based on this tuple. > This makes those queries take a significant amount of time in large > metastores since they do a full table scan. -- This message was sent by Atlassian JIRA (v7.6.3#76005)