Add JSON backend #12
Labels
No labels
bug
cli
enhancement
firefox
qutebrowser
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xenrox/bibliodrina#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is not straightforward. Because of racing conditions the file could become corrupted. One solution could be locking the file. Another would be to introduce a daemon, which caches the file in memory. The latter would complicate the architecture and deployment though.
Explanation for the racing condition: When a bookmark is opened, I want to increase a counter which can be used for sorting. When executing two bibliodrina commands in quick succession, the first write to the file may not be done.
For Firefox bibliodrina could establish a continuous connection with
browser.runtime.connectNative()to fix the above and increase performance with a cache.The problem would still remain though with qutebrowser and the cli commands.