{"id":18274097,"url":"https://github.com/iamriteshkoushik/db-dev","last_synced_at":"2025-08-25T02:30:47.645Z","repository":{"id":233164227,"uuid":"784813213","full_name":"IAmRiteshKoushik/db-dev","owner":"IAmRiteshKoushik","description":"My attempt to write a simple SQL database from build-your-own.org","archived":false,"fork":false,"pushed_at":"2024-06-28T17:41:11.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-05T12:08:32.495Z","etag":null,"topics":["dbms","golang","sql","systems-programming"],"latest_commit_sha":null,"homepage":"","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/IAmRiteshKoushik.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-10T15:56:02.000Z","updated_at":"2024-05-18T13:35:22.000Z","dependencies_parsed_at":"2024-04-14T08:58:17.748Z","dependency_job_id":null,"html_url":"https://github.com/IAmRiteshKoushik/db-dev","commit_stats":null,"previous_names":["iamriteshkoushik/db-dev"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmRiteshKoushik%2Fdb-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmRiteshKoushik%2Fdb-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmRiteshKoushik%2Fdb-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmRiteshKoushik%2Fdb-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IAmRiteshKoushik","download_url":"https://codeload.github.com/IAmRiteshKoushik/db-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230866118,"owners_count":18292207,"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":["dbms","golang","sql","systems-programming"],"created_at":"2024-11-05T12:08:38.798Z","updated_at":"2024-12-22T17:45:47.303Z","avatar_url":"https://github.com/IAmRiteshKoushik.png","language":"Go","readme":"# Database Development\n\n## Preliminary Notes\n\n### 1. Persistence\nA database will recover to a usable state when started after an unexpected\nshutdown. While we can achieve it without a database as follows:\n\n- Write the whole updated dataset to a file\n- Call `fsync` on the new file\n- Overwrite the old file by renaming the new file to the old file, which is \nguarenteed by the file-systems to be atomic.\n\nBut this is only acceptable with a tiny dataset. Databases can do incremental \nupdates.\n\n### 2. Indexing\nThere are two distinct types of database queries: analytical (OLAP) and \ntransactional (OLTP).\n\n- Analytical (OLAP) queries typically involve a large amount of data, with \naggregation, grouping or join operations\n- In contrast, transactional (OLTP) queries usually only touch a small amount \nof indexed data. The most common types of queres are indexed point queries \nand indexed range queries.\n\n\u003e Data structures that persist on disk to `look up` data are called `indexes`\nin database systems. And database indexes can be larger than memory. \n\nCommon data structures include `B-Trees` and `LSM-Trees`\n\n### 3. Concurrency\nModern applications do not do everything sequentially, and nor do databases.\nThere are different levels to concurrency :\n\n- Concurrency between readers\n- Concurrency between readers and writers\n- Do writers need exclusive access to the database ?\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamriteshkoushik%2Fdb-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamriteshkoushik%2Fdb-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamriteshkoushik%2Fdb-dev/lists"}