mygrsun opened a new issue, #4089:
URL: https://github.com/apache/gravitino/issues/4089

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Through my test,I found that list-table will takes 300s when a schema has 
5000 tables .
   I analysis the code and add some logs ,then found is the reason for calling 
the  getTableObjectsByName interface.
   listtable use the getTableObjectsByName .this metatore interface is very 
slow.
   <img width="877" alt="image" 
src="https://github.com/apache/gravitino/assets/4070282/3cb36f3e-3438-4713-aaa3-435ea38a3780";>
   
   
   ### Error message and/or stacktrace
   
   I add some logs at 3 positions.
   <img width="890" alt="image" 
src="https://github.com/apache/gravitino/assets/4070282/e5aa4ae4-4659-47d5-9024-8f74afc5d535";>
   
   the result is:
   
   <img width="1154" alt="image" 
src="https://github.com/apache/gravitino/assets/4070282/bdbe35f0-95e0-4b4d-b04a-32b7465d868b";>
   
   
   ### How to reproduce
   
   add 5000 tables to one schema
   
   ### Additional context
   
   _No response_


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to