Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PouchDB purge best practices using Offline Persistence Toolkit

Mark EricsonApr 6 2022

Building a PWA with OPT with PouchDB as PersistenceStore for shredding. What is the best practice to purge/reclaim space for the PouchDB?
The reason I'm asking is that PouchDB does not have the ability to 'purge' deleted objects and there isn't a way to reclaim space for resources that have been stored in PouchDB that are no longer required in the cache.
I believe the only solution to reclaim space is to remove the database and create a new one. If that is the case what is a good practice for doing that? Delete the database after the sync has been completed? Offer user settings to purge the PouchDB persistence storage?

Comments
Post Details
Added on Apr 6 2022
2 comments
477 views