Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move metadata writes to be atomic with datastore writes + improve performance #124

Closed
mikejohnstn opened this issue Aug 27, 2013 · 3 comments

Comments

@mikejohnstn
Copy link
Contributor

Currently there is still metadata stored in NSUserDefaults (e.g. for pending changes). It's possible, if an app crashes, that this could fall out of sync with objects that have been written to the datstore.

Ideally, data writes and associated metadata should be written atomically. This will probably involve dynamically creating an entity in the persistent store for all Simperium metadata instead of using NSUserDefaults or Core Data UserInfo.

@mikejohnstn
Copy link
Contributor Author

This pull request will get us part of the way there, but may not achieve atomicity just yet: #141

@jleandroperez
Copy link
Contributor

@mikejohnstn atomicity in the Memory Footprint branch is (almost) trivial. But the performance impact was considerable, when dealing with "huge" loads.

@jleandroperez
Copy link
Contributor

Closing in favor of Issue #442

@jleandroperez jleandroperez modified the milestone: v0.8.5 Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants