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

Avoid Using JSON.stringify When Hash Objects in Storage Utils #150

Closed
seanwu1105 opened this issue Oct 29, 2020 · 1 comment · Fixed by #227
Closed

Avoid Using JSON.stringify When Hash Objects in Storage Utils #150

seanwu1105 opened this issue Oct 29, 2020 · 1 comment · Fixed by #227
Assignees
Labels
bug Something isn't working priority:high High priority
Milestone

Comments

@seanwu1105
Copy link
Contributor

Use sha256 is not a good idea as sha256$() uses JSON.stringify() under the hood. Thus, the order of the tuple (properties) will result in different hash if tuple is an array (object).

Maybe we need to use SQLite to save files.

@seanwu1105 seanwu1105 added bug Something isn't working priority:medium Medium priority labels Oct 29, 2020
@seanwu1105 seanwu1105 added this to the backlog milestone Oct 29, 2020
@seanwu1105 seanwu1105 added priority:high High priority and removed priority:medium Medium priority labels Oct 29, 2020
@seanwu1105
Copy link
Contributor Author

seanwu1105 commented Nov 11, 2020

  • Abstract storage (store?) interface
  • Try RxDB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high High priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant