quinedb icon indicating copy to clipboard operation
quinedb copied to clipboard

Transaction support

Open Baughn opened this issue 9 years ago • 5 comments

With the supplied 'qdb' wrapper, if you do multiple simultaneous invocations of quinedb (as, say, to increase performance on a multicore system), there's a chance of clashing writes to qdb.out/err, which will break the executable entirely.

To get around this you should lock the output files before quinedb is invoked.

Also it would be nice to have it support transactions.

Baughn avatar Sep 14 '16 12:09 Baughn

Would accept a pull request that does file locking. Maybe in a section at the bottom of the README for advanced users.

gfredericks avatar Sep 15 '16 02:09 gfredericks

Suggest using sponge from moreutils to finalize transaction. As it automatically preserves executable bits.

NHOrus avatar Sep 15 '16 15:09 NHOrus

I'd rather not add dependencies like that. Would make it a pain for installation.

gfredericks avatar Sep 15 '16 16:09 gfredericks

How about if we use nix-shell to automatically install sponge?

Baughn avatar Sep 15 '16 18:09 Baughn

no.

gfredericks avatar Sep 20 '16 02:09 gfredericks