{"id":20602145,"url":"https://github.com/modernizing/git2sqlite","last_synced_at":"2026-04-20T11:03:20.606Z","repository":{"id":126981649,"uuid":"335473906","full_name":"modernizing/git2sqlite","owner":"modernizing","description":"Git log as a web services","archived":false,"fork":false,"pushed_at":"2021-02-05T05:43:10.000Z","size":86,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T01:49:29.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modernizing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-03T01:35:35.000Z","updated_at":"2022-01-19T14:38:44.000Z","dependencies_parsed_at":"2023-04-09T19:46:49.279Z","dependency_job_id":null,"html_url":"https://github.com/modernizing/git2sqlite","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit2sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit2sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit2sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit2sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modernizing","download_url":"https://codeload.github.com/modernizing/git2sqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242241596,"owners_count":20095400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T09:12:55.862Z","updated_at":"2026-04-20T11:03:20.551Z","avatar_url":"https://github.com/modernizing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git to SQLite\n\nA research on how to save Git log to database for [Coco](https://github.com/inherd/coco)\n\nArchitecture\n\n1. parse git log\n2. parse log by line to commit\n3. save commit to json file\n4. read json file and save to db\n\n## Performance logs\n\n### Without Changes\n\n- Machine: MacBook Pro (15-inch, 2018)\n- Processor: 2.2 GHz 6-Core Intel Core i7\n- Memory: 16 GB 2400 MHz DDR4\n\n| Project Name     | Project Commits | Time   | Times(ms)         |\n|------------------|-----------------|--------|-------------------|\n| Rust Regex       | 1078            | 3s     | 2919ms ~ 3012ms   |\n| Lombok           | 3127            | 8s     | 8096ms ~ 8616ms   |\n| Nginx            | 6805            | 32s    | 32468ms ~ 33967ms |\n| Redis            | 10009           | 67s    | 65328ms ~ 71616ms |\n| Spring Framework | 22133           | 706s   |                   |\n| Graal            | 49026           | 1425s  |                   |\n| Gradle           | 78711           | 4130s  |                   |\n\n### With Changes in Serial\n\n111063ms\n\n| Project Name     | Project Commits | Times(ms)         |\n|------------------|-----------------|-------------------|\n| Coco             | 405             | 111063ms          |\n|  Rust Regex      | 1078            | \u003e 6000000ms       |\n\n### With Changes in JSON\n\n| Project Name     | Project Commits | Time   | Times(ms)         | Size      |\n|------------------|-----------------|--------|-------------------|-----------|\n| Rust Regex       | 1078            | 3s     | 6771ms            | 598M      |\n| Lombok           | 3127            | 8s     | 25541ms           | 2.4G      |\n| Nginx            | 6805            | 32s    | 207398ms          | 11G       |\n| Redis            | 10009           | 67s    | 248299ms          |           |\n\n## Todo\n\n - 获取所有的提交 id (Change to list all commits)\n - 将提交 ID 分段，获取不同的 ID (and run git to split commits)\n\nOr\n\n - Changes of half year\n\n## Solution Strategy\n\n1. summary all commits\n2. summary all changes, count changes size\n3. fetch recently 10000 changes ? or half years change by commit_id?\n4. count relations?\n\nLicense\n---\n\n@ 2020~2021 This code is distributed under the MIT license. See `LICENSE` in this directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernizing%2Fgit2sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodernizing%2Fgit2sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernizing%2Fgit2sqlite/lists"}