Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode增加四级缓存 #45

Open
nnhy opened this issue Sep 20, 2024 · 0 comments
Open

XCode增加四级缓存 #45

nnhy opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nnhy
Copy link
Member

nnhy commented Sep 20, 2024

XCode已有三级缓存,为了进一步提升性能,计划增加第四级缓存!

背景:

在BI数据分析项目中,有些数据大表,可能每天或者每几个小时才更新一次。由于数据量大,查询复杂,导致每次查询都耗时较多。

方案:

在实体层增加第四级查询缓存,借助ICache缓存数据。在FindAll中,以where+order+select+page为key,默认缓存60秒,过期时异步加载,确保除首次外的每次查询都能快速返回。

@nnhy nnhy added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant