-
Notifications
You must be signed in to change notification settings - Fork 24
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
能提供方法把db全部加载到redis #9
Comments
现在是直接加载到内存,比保存在 redis 要快许多。 |
你的意思默认初始化 就是加载到应用内存中?如果这样的话,我就没有必要在redis 在搞缓存? |
用 LoadFile 加载 data/regions.db 或是调用 data.Embed 可以将内容加载至内存。 |
cnregion.LoadFile(path+"/regions.db", "-", 2023) 嗯,好的,如果这样的 我把redis缓存去掉 |
|
这个bool 是什么意思? |
默认不是添加上去吗? |
你之前贴的代码里没有加,我就写了下。bool 表示加载的文件是否是经过压缩的。 |
1.压缩是什么意思?2.现在知道村居委,能不能村居委下面的自然村/行政村 也有数据 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我们对db 有大量频发的查询
The text was updated successfully, but these errors were encountered: