强化KeyValueItem#7
Open
Arthurli wants to merge 3 commits into
Open
Conversation
Member
|
谢谢你的改进,但是我有以下的看法:
|
|
@tangqiaoboy 这里关于如何store,我想请教一下。我看几个开源的基于FMDB的库,store文件都是单例,但是这个单例中维护的都是FMDatabase对象,那么在多线程访问情况下,这个就会有问题的。最近在使用FMDB做数据存储。数据库读取操作需要将操作放到子线程,否则会卡主线程。同时写操作的时候希望提高效率就会使用多线程。而通过单例维护FMDatabase对象的store,在使用多线程时会有问题。不明白为什么开源库不使用FMDatabaseQueue?不过YTKKeyValueStore中是使用FMDatabaseQueue,支持多线程的。 2、YTKKeyValueStore中表结构是(id, json, createTime),只是存储json数据,能够满足大部门需求吗?比如我现在想要排序、分组,或者需要对数据做一些筛选查询,只是json数据,我觉得很难满足大部分需求? |
Member
|
@MappleHero 抱歉回复晚了。
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
强化了keyValueItem的作用,使它能够直接加载和存储数据