did.database should be parallel / multithread friendly

Open
#59 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

resolved

When running parallel processes, we get errors that "the database is locked". It's unclear what the right fix is.

  • If sqlite3 has some sort of a multi-threaded option, it might be the best choice.
  • Another fix would be to catch the error and have the program try again at random intervals every 1 second or so for up to 600 seconds, to attempt to complete its task. This might make it more common for a user to break the program (perhaps by control-C) while the program is in the middle of writing to its various tables, resulting in an incomplete entry. It is possible now but if the program spends more time waiting for access that isn't guaranteed to be instant, it might happen more often. Maybe we don't worry about this at the moment.
Dominant language
MATLAB
Stars
1
Forks
2
Avg merge
2h 18m
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VH-Lab/DID-matlab

All issues in VH-Lab/DID-matlab

Similar issues

More MATLAB issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.