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

Improve Stability and Reliability of Data Persistence #227

Merged
merged 5 commits into from
Nov 18, 2020

Conversation

seanwu1105
Copy link
Contributor

Implement stable and reliable data persistence solution with Capacitor Filesystem plugin.

Use the plugin to create a JSON file for each table in database. The JSON contains a single big array to store tuples. Also, use an async-mutex to insure each insertion and deletion is atomic. Write a fully covered unit tests to make sure the reliability.

Fix #150.

…r Filesystem plugin.

We use the plugin to create a JSON file for each table in database. The JSON contains a
single big array to store tuples. Also, we use an async-mutex to insure each insertion
and deletion is atomic. We write a fully covered unit tests to make sure the reliability.
@seanwu1105 seanwu1105 added the code Improvements to code quality or project architecture label Nov 17, 2020
@seanwu1105 seanwu1105 added this to the backlog milestone Nov 17, 2020
@seanwu1105 seanwu1105 requested a review from shc261392 November 17, 2020 13:19
@seanwu1105 seanwu1105 self-assigned this Nov 17, 2020
@seanwu1105 seanwu1105 linked an issue Nov 17, 2020 that may be closed by this pull request
Copy link
Contributor

@shc261392 shc261392 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The improvement seems solid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Improvements to code quality or project architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid Using JSON.stringify When Hash Objects in Storage Utils
2 participants