-
Notifications
You must be signed in to change notification settings - Fork 173
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
Multi-thread usage #143
Comments
Having looked at the code in detail for the issue/question I posted yesterday, (#142) I think I can answer this for you. |
Thank you ! I see the fcm_onMainThread and invokes around it. I think that means we can not benifit from databasequeue (fmdb supported, with it we can do actions on background threads then no blocking with UI). I will NOT use FCModel in my app (large numbers of data, sql execution may be slow) . |
That’s correct. FCModel is not designed for interactive use during long-running queries, so it’s probably not a good fit for your needs.
|
Thanks a lot! FCModel is great for it's simple & easy to use. I will try this in other scenes. |
If I have a long long record, I will be happy to do the database action on background threads in order to have no blocking with UI.
BUT FCModel says :"FCModels can be used from any thread, but all database reads and writes are serialized onto the main thread, so you're not likely to see any performance gains by concurrent access."
What does this mean?
Thank you very much! need your help.
The text was updated successfully, but these errors were encountered: