diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-02-15 12:37:38 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-02-15 12:37:38 -0400 |
commit | 218ce88d475dae385ab82a28a3c437aea90e9ad6 (patch) | |
tree | a990ac8db99dc86f9448d5f9b041bf80e35556c8 /doc | |
parent | a981846581fe150ac0a1e191d1b0ea1c418cc5fe (diff) |
reviewed vcache for use by git-annex; found it wanting
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_8_9f5acbc79b631a93d7cdf4ae37c07cab._comment | 19 | ||||
-rw-r--r-- | doc/design/caching_database.mdwn | 8 |
2 files changed, 19 insertions, 8 deletions
diff --git a/doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_8_9f5acbc79b631a93d7cdf4ae37c07cab._comment b/doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_8_9f5acbc79b631a93d7cdf4ae37c07cab._comment new file mode 100644 index 000000000..a63381ed0 --- /dev/null +++ b/doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_8_9f5acbc79b631a93d7cdf4ae37c07cab._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="joey" + subject="""vache""" + date="2015-02-15T16:35:12Z" + content=""" +<https://github.com/dmbarbour/haskell-vcache> + +It uses LMDB, which is a C library, and its PVar is a variable named by a +bytestring, so it's essentially a key/value store where the values can be +arbitrary Haskell data types. Since git-annex already has Keys, and most +of the need for the database is to look up some cached value for a Key, +this seems like a pretty good fit! + +Unfortunately, "A VCache file may be opened by only one process at a time, +and only once within said process." + +But, git-annex needs multiple read-only access, as many git-annex processes +can run concurrently. +"""]] diff --git a/doc/design/caching_database.mdwn b/doc/design/caching_database.mdwn index a6face00f..5c32fa407 100644 --- a/doc/design/caching_database.mdwn +++ b/doc/design/caching_database.mdwn @@ -45,14 +45,6 @@ DB into memory. In the comments of other haskell database-like things, and found them all wanting, except for possibly TCache. -TODO: This seems promising; investigate it: -<https://awelonblue.wordpress.com/2014/12/19/vcache-an-acid-state-killer/> -It uses LMDB, which is a C library, and its PVar is a variable named by a -bytestring, so it's essentially a key/value store where the values can be -arbitrary Haskell data types. Since git-annex already has Keys, and most -of the need for the database is to look up some cached value for a Key, -this seems like a pretty good fit! - ## case study: persistent with sqllite Here's a non-normalized database schema in persistent's syntax. |