greenDAO icon indicating copy to clipboard operation
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?

Open windfallsheng opened this issue 4 years ago • 1 comments

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?

windfallsheng avatar Jun 04 '20 11:06 windfallsheng

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/

greenrobot-team avatar Jun 22 '20 06:06 greenrobot-team