Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
None
-
None
-
None
Description
This is an optimization ticket. Currently the way we do fetch is
- Get all database names from HMS. Create a Db Task for each database name. HMS Request = 1.
- For each database task
- Get all database objects from HMS
- Get all table names, for each database
- Create a table task for "maxTablesPerCall" tables
- For each table task
- For each table task get all table objects
- For each "maxTablesPerCall" tables fetched, get partition names
- For each ""maxTablesPerCall" tables fetched, created partition tasks for "maxPartitionsPerCall" partitions
- For each partition task
- Get all partition objects for, database, table, and list of partition names
Instead of splitting connecting to HMS and getting bits of information, it is better to get them all in a single request