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

Can you disable seesion cache by default? #1055

Open wintergoes opened 3 years ago

wintergoes commented 3 years ago

Hi Developers,

I spent one day for a cache problem, I update the database, but when I use a select case after update, I got old data.

After one day research, I found it is cased by session cache, and finally I use IdentityScopeType.None when create DaoSession object and fix the problem.

I have a kindly suggestion, can you disable session cache by default?

Thanks very much