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

Remove from database clear the data, but doesn't update the disk storage stats #72

Open
julienkermarec opened this issue Nov 21, 2023 · 1 comment

Comments

@julienkermarec
Copy link

julienkermarec commented Nov 21, 2023

Is your feature request related to a problem? Please describe.
When i use this.store.remove({ key }); on my Angular/Capacitor mobile app, the data is removed, but the disk space doesn't change.

Describe the solution you'd like
I see on SQLite documentation that auto_vacuum need to be set (0 | NONE | 1 | FULL | 2 | INCREMENTAL)
https://sqlite.org/pragma.html#pragma_auto_vacuum

Is it possible to add an option to update the property auto_vacuum ?

Describe alternatives you've considered
The only way to reduce the size on disk is to use deleteStore() but the method remove the databse or a specific table.

Additional context
Ionic CLI : 7.1.1
NodeJS : v20.2.0
npm : 9.6.6
@capacitor/android": "5.0.5
"capacitor-data-storage-sqlite": "5.0.1"

@riderx
Copy link
Contributor

riderx commented Aug 13, 2024

Hello do you still have the issue?

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