SourceR85 commented on issue #9173:
URL: https://github.com/apache/pouchdb/issues/9173#issuecomment-3907082912

   >     * A possible solution could write the attachments first and then start 
the IndexedDB transaction, but if the transaction fails, we might leave 
unreferenced attachments in OPFS that do not show up in IndexedDB. For that we 
would need a cleanup task that is not too expensive, so we can run it during 
compaction
   
   That would also be my first idea: give the fs-system a promise, that removes 
the file on error and add another parallel fs cleanup task for situations when 
a cleanup pipeline broke (e.g. forced browser quit during replication).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to