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

Anishek Agarwal commented on HIVE-25336:
----------------------------------------

dont think you can get all table definitions at once, can lead to memory 
pressure on HMS, some form of batching however would make sense. or lazy 
loading.

> Use single call to get tables in DropDatabaseAnalyzer
> -----------------------------------------------------
>
>                 Key: HIVE-25336
>                 URL: https://issues.apache.org/jira/browse/HIVE-25336
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Optimise 
> org.apache.hadoop.hive.ql.ddl.database.drop.DropDatabaseAnalyzer.analyzeInternal(DropDatabaseAnalyzer.java:61),
>  where it fetches entire tables one by one. Move to a single call. This could 
> save around 20+ seconds when large number of tables are present.



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

Reply via email to