{"id":16855381,"url":"https://github.com/jehiah/mongosort","last_synced_at":"2025-08-22T07:37:52.652Z","repository":{"id":17579575,"uuid":"20383053","full_name":"jehiah/mongosort","owner":"jehiah","description":"Sort records on disk in a mongo database","archived":false,"fork":false,"pushed_at":"2014-06-01T19:16:40.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T11:12:31.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jehiah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-01T18:12:58.000Z","updated_at":"2015-02-21T08:10:54.000Z","dependencies_parsed_at":"2022-09-23T22:00:57.222Z","dependency_job_id":null,"html_url":"https://github.com/jehiah/mongosort","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jehiah/mongosort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fmongosort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fmongosort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fmongosort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fmongosort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jehiah","download_url":"https://codeload.github.com/jehiah/mongosort/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fmongosort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271605830,"owners_count":24788968,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-13T13:59:33.535Z","updated_at":"2025-08-22T07:37:52.630Z","avatar_url":"https://github.com/jehiah.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongosort\n\n\u003cspan style=\"color:red;\"\u003eNote: this is in prototype development stage and is not yet functional\u003c/span\u003e\n\nDisk access (even if mmapped) is slow primarily based on the number of disk seeks required to access data.\n\nWhile mongo mmaps data into RAM that only provides a speedup if your data is already in RAM, if it's on disk it doesn't help. When you try to scan say 10k records in a mongo query, it must perform disk seeks on both the index and the data extents to complete a query. This creates a significant cold start problem.\n\nmongosort attempts to sort ondisk data ordered by the primary key `_id` so that when using custom `_id` values and querying based on that sort order, it takes as few seeks as possible to map data in from disk.\n\n## Storage Format References\n\nhttp://2013.nosql-matters.org/bcn/wp-content/uploads/2013/12/storage-talk-mongodb.pdf\nhttps://speakerdeck.com/mathias/storage-internals\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjehiah%2Fmongosort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjehiah%2Fmongosort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjehiah%2Fmongosort/lists"}