florent37 / Freezer

A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Apache License 2.0
328 stars 44 forks source link

Freezer close database after every operation #17

Open allenz8512 opened 8 years ago

allenz8512 commented 8 years ago

Which may cause "java.lang.IllegalStateException: attempt to re-open an already-closed object." or "java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been closed."

allenz8512 commented 8 years ago

Work well on single thread, but it has chance to throw when using multithread access database

florent37 commented 8 years ago

mmm I don't know how to handle it, any idea ?

graphee-gabriel commented 7 years ago

28 might have fixed this issue if you use add(List<Object> objects) instead of many add(Object object)