Skip to content
New issue

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

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

Already on GitHub? # to your account

增加查询缓存 #6

Open
Becivells opened this issue Dec 28, 2021 · 0 comments
Open

增加查询缓存 #6

Becivells opened this issue Dec 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Becivells
Copy link
Member

Becivells commented Dec 28, 2021

在限定时间内(3天)进行同一语法查询直接从缓存中读取
定期缓存清理(不会每次使用都进行清理)
增加 --no-cache 参数来手动忽略缓存(同时会替换缓存内容)
增加 -disable-cache-clean 参数关闭
思路1:查询时发送所有字段。获取结果的时候进行字段选择输出。可以排除因字段不同需要二次请求。同时对于请求数据的个数如果小于库中记录的个数则直接获取其中数据。暂时不对查询语句进行解析
思路2: 暴力缓存。不考虑其他直对 get参数进行hash 然后缓存结果。方便快捷代码少

@Becivells Becivells added the enhancement New feature or request label Dec 29, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant