Store git repo in database for server use

724 Views Asked by At

As git repositories are saved on disk in some files, serving a public repo in a high-trafic server may cost too much. And also, git-core just supports cgi that slows serving down too.

I want to know, if i save git repository in a database, such as rocksdb, can improve performance?

For example store git objects in a key-value db with hash as key and a special transformation of object as value, and then use replication, sharding,.... to load balance the DB.

I specially focuse on long latency of disk operation on multiple small files.

This system is just for using in a server not for commiting, staging, ammending, and tracking workspace files for a developer

0

There are 0 best solutions below