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

feat: local db #97

Merged
merged 10 commits into from
Jun 28, 2024
Merged

feat: local db #97

merged 10 commits into from
Jun 28, 2024

Conversation

Innei
Copy link
Member

@Innei Innei commented Jun 28, 2024

Why

To solve the problem of slow JSON persistence, this refactoring uses indexeddb to store data.
And we added a new option to enable or disable the use of offline data.

Fixed the problem of not being able to read star entries in offline mode.

Performance

After testing 1680+ data items in Entry, it takes ~150ms (async time will not block ui) to reorganize all the data references and logic calculations.

This is at least 1x less than the JSON processing time.

Signed-off-by: Innei i@innei.in

Innei added 9 commits June 28, 2024 16:55
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
Signed-off-by: Innei <i@innei.in>
@Innei Innei marked this pull request as ready for review June 28, 2024 13:18
@Innei Innei requested a review from DIYgod June 28, 2024 13:25
@DIYgod DIYgod merged commit be6968c into main Jun 28, 2024
1 check passed
@DIYgod DIYgod deleted the local-db branch June 28, 2024 17:05
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

Successfully merging this pull request may close these issues.

2 participants