SQLITE_BUSY: database is locked
Sometimes when I run importjs from the command line, I get this message
SQLITE_BUSY: database is locked
importjs word foo path/to/foo.js
re-running it will sometimes give me a response and other times tell me that the database is locked. This is the first time I've started it up after a while, so it is possible that it is just starting to read everything and fill up the database still, but it is hard for me to know exactly what might be happening here.
Yeah I think this happened during initial startup and filling up the cache. After waiting long enough it seems to work okay now. FWIW, my DB is now ~15 MiB.
There is probably an opportunity here to improve the experience through better error messaging or perhaps throttling the database writes or something.