greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Call insert, save, or insertOrReplace multiple times to save multiple data, and then the problem of loadAll will #1021

Open wangzhipeng-vicky opened 4 years ago

wangzhipeng-vicky commented 4 years ago

多次调用insert或者save或者insertOrReplace存多条数据,然后loadAll,结果是多条数据的内容都是最后一条数据的,也就是说内容与数据库中最后插进去的那条一样

greenrobot-team commented 4 years ago

Maybe a caching issue. https://greenrobot.org/greendao/documentation/sessions/