4 ms·
What global lock? Are you talking about the index? There are options for writing the index to separate directories. You can write each blob/tree separately,
by technoweenie 16y ago
What global lock? Are you talking about the index? There are options for writing the index to separate directories. You can write each blob/tree separately, build an index in a unique temporary directory, and then the commit.
Is there something else I'm missing?
- fhars 16y agoConcurrent updates to the same object. You could get around some of the limitations by creating a branch for every session (though probably not on a high volume site), but then you will have lots of interesting problems once a session ends and you have to merge all changes back into master.
- technoweenie 16y agoAhh, yes this would be a problem on GitModel. I was thinking of Git at a lower level, since you can't update objects without also changing the SHA.
- pauldowman 16y agoGitModel itself has a global lock (for now), here: https://github.com/pauldowman/gitmodel/blob/master/lib/gitmodel/transaction.rb#L18 https://github.com/pauldowman/gitmodel/blob/master/lib/gitmo... I think it's easily fixed with a merge, as I described here: http://news.ycombinator.com/item?id=1929691 http://news.ycombinator.com/item?id=1929691