dataroaring opened a new issue, #18619:
URL: https://github.com/apache/doris/issues/18619

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   Tablet meta consumes memory in be, when there are many tablets, e.g. 40w in 
a be, then tablets meta consumes a lot memory. e.g.  a tablet in a table with 
200 columns consumes 70KB memory.  Doris store tablet meta in rocksdb while it 
loads them into memory when doris starts. We can use memory as a cache to 
reduce memory consumed by tablet meta.
   
   ### Solution
   
   1. add a lru cache to TabletMgr
   2. maintain cache in tablet mgr when create delete and update tablet meta
   3. get tablet through cache and rocksdb 
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to