project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
786 stars 237 forks source link

Update of the DB is not reflected #221

Open sandeepjoshiaw opened 8 years ago

sandeepjoshiaw commented 8 years ago

In my project, I have two processes which are interacting with the Core Data. One of the process is inserting data. Now I fetch the DB using another process, I get the Data.

But when I update the DB using one process while another is running and fetch the data from another process, I don't see the changes. I get the old data. However, If I kill the process and run again, I can get the updated data.

DanielBroad commented 8 years ago

Multithreaded core data is tricky, does this work with the standard stack?

sandeepjoshiaw commented 8 years ago

Yes the DB operations I mentioned works fine without the encryption and FYI I am using this in mac.

DanielBroad commented 8 years ago

Can you make/modify a unit test to reproduce this?