You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Storage Bucket API (Background blog) in Chromium browsers allows for better control of persistence and eviction. It is now also more performant, with a sort of multi-threaded implementation.
It would be beneficial if Dexie could implement its use in browsers that support it
However, it could probably also be worth it to support it more user-friendly in Dexie. For example:
constdb=newDexie('my-db',{bucket: 'my-bucket',persisted: true// passed to storageBuckets.open()});
Question would be how to behave on browsers without the storagebuckets api? Probably to ignore the bucket and persisted arguments, or maybe default persisted to try StorageManager.persist(). But then what happens when the same user upgrades their browser and it gets this API? Probably user will suddenly get an empty DB now that the bucket is created.
Activity
dfahlander commentedon Jun 18, 2024
It should already be possible:
However, it could probably also be worth it to support it more user-friendly in Dexie. For example:
Question would be how to behave on browsers without the storagebuckets api? Probably to ignore the bucket and persisted arguments, or maybe default persisted to try StorageManager.persist(). But then what happens when the same user upgrades their browser and it gets this API? Probably user will suddenly get an empty DB now that the bucket is created.
Comments?