You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "zengxl (Jira)" <ji...@apache.org> on 2025/12/18 03:02:00 UTC
[jira] [Updated] (HIVE-29378) When there are a large number of tables, the "getTables" operation is very slow.
[ https://issues.apache.org/jira/browse/HIVE-29378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zengxl updated HIVE-29378:
--------------------------
Description:
After introducing HIVE-24769, when executing the "show tables" command and there are thousands or even tens of thousands of tables in a single database, each table needs to return a complete Table object. This object is processed by the getTableObjectsByName method in the ObjectStore and {*}convertedToTable{*}. Each *convertedToTable* takes 5 to 10 milliseconds to complete. With a large number of tables, the process becomes very slow.
!image-2025-12-18-10-59-31-927.png!
was:
After introducing HIVE-24769, when executing the "show tables" command and there are thousands or even tens of thousands of tables in a single database, each table needs to return a complete Table object. This object is processed by the getTableObjectsByName method in the ObjectStore and converted to a Table. Each table takes 5 to 10 milliseconds to complete. With a large number of tables, the process becomes very slow.
!image-2025-12-18-10-59-31-927.png!
> When there are a large number of tables, the "getTables" operation is very slow.
> --------------------------------------------------------------------------------
>
> Key: HIVE-29378
> URL: https://issues.apache.org/jira/browse/HIVE-29378
> Project: Hive
> Issue Type: Bug
> Affects Versions: 4.2.0
> Reporter: zengxl
> Priority: Major
> Attachments: image-2025-12-18-10-59-31-927.png
>
>
> After introducing HIVE-24769, when executing the "show tables" command and there are thousands or even tens of thousands of tables in a single database, each table needs to return a complete Table object. This object is processed by the getTableObjectsByName method in the ObjectStore and {*}convertedToTable{*}. Each *convertedToTable* takes 5 to 10 milliseconds to complete. With a large number of tables, the process becomes very slow.
> !image-2025-12-18-10-59-31-927.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)