terrymanu opened a new issue #8224:
URL: https://github.com/apache/shardingsphere/issues/8224


   The performance in concurrent access of guava cache is poor if using the 
static one.
   Please ref #8208 to get performance test report.
   
   It is better to redesign the cache structure. I'd like to contain cache into 
per parser engine, and to open an API to permit user customize the initial size 
of cache.
   ShardingSphere should hold singleton parse engine for each database dialect. 
The adjust tasks are:
   
   - [ ] Add parser engine factory in ShardingSphere parser infra module to 
hold singleton parse engine.
   - [ ] Move static cache into parser engine instance.
   - [ ] Create new constructor to accept CacheOption.
   - [ ] Reduce default cache initial capacity from 2000 to 128, max size from 
65535 to 1024 if using default constructor.
   - [ ] Use Loading cache instead raw cache to simplify data loading process.
   


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

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


Reply via email to