Hacker News new | past | comments | ask | show | jobs | submit login

It seems like git can also be used as an immutable database as well. Does anyone here have experience / comments on using git as a database backend?

EDIT: I found a couple of interesting references for folks who may be curious about this as well. I especially like [2] for its diagrams.

[1] https://stackoverflow.com/questions/20151158/using-git-repos...

[2] https://www.kenneth-truyers.net/2016/10/13/git-nosql-databas...




It seems you would want a hosted git installation like github / gitlab or VSO for that. The main concern to me is that API keys are usually too limiting (or too expensive). E.g. if you don't want to manage local state by having a working directory you need to do many API calls to make a change (create the objects, create the trees, then create the commit, then change the ref) so that it is almost more worthwhile to use the same data structure on a more generic backend like a NoSQL key-value store. I haven't done this though (though it's been on my wish list for long).

What it also doesn't give you for free is sensible search indexes. I do think though that combining it with a search index could be very powerful.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: