greenDAO
greenDAO copied to clipboard
Is Greendao's read and write operations thread-safe? Can it handle database table read and write operations simultaneously in a multi-threaded environment?
greendao的读写操作是线程安全的吗,可以在多线程环境下,同时处理数据库表的读写操作吗? EN:Is Greendao's read and write operation thread-safe, can it handle the read and write operation of database table in multi-threaded environment at the same time?
Yes. Note some edge cases regarding queries and session caching. https://greenrobot.org/greendao/documentation/queries/#Executing_queries_in_multiple_threads https://greenrobot.org/greendao/documentation/sessions/