{"id":20388561,"url":"https://github.com/si3nloong/sql-toxic-queries","last_synced_at":"2025-04-12T10:41:58.253Z","repository":{"id":97110223,"uuid":"507942892","full_name":"si3nloong/sql-toxic-queries","owner":"si3nloong","description":"Benchmark on toxic queries","archived":false,"fork":false,"pushed_at":"2023-10-15T03:02:15.000Z","size":21270,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T05:33:20.209Z","etag":null,"topics":["benchmark","go","sql","toxic-query"],"latest_commit_sha":null,"homepage":"https://sianloong90.medium.com/go-beyond-sql-27baf2e0e9d8","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/si3nloong.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}},"created_at":"2022-06-27T14:30:00.000Z","updated_at":"2023-03-16T10:32:51.000Z","dependencies_parsed_at":"2023-10-16T07:20:11.463Z","dependency_job_id":null,"html_url":"https://github.com/si3nloong/sql-toxic-queries","commit_stats":null,"previous_names":["si3nloong/sql-toxic-queries","si3nloong/toxic-queries"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fsql-toxic-queries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fsql-toxic-queries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fsql-toxic-queries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/si3nloong%2Fsql-toxic-queries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/si3nloong","download_url":"https://codeload.github.com/si3nloong/sql-toxic-queries/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557001,"owners_count":21124156,"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":["benchmark","go","sql","toxic-query"],"created_at":"2024-11-15T03:11:24.808Z","updated_at":"2025-04-12T10:41:58.226Z","avatar_url":"https://github.com/si3nloong.png","language":"Go","readme":"# Toxic Queries\n\n\u003e This is an experiment to test how slow can a toxic query be.\n\n## Setup\n\n\u003cp\u003eMachine: Macbook Pro\u003c/p\u003e\n\u003cp\u003eCPU: M1 Max\u003c/p\u003e\n\u003cp\u003eMemory: 32GB\u003c/p\u003e\n\u003cp\u003eOS: macOS Monterey\u003c/p\u003e\n\u003cp\u003eRecord set: 500,000\u003c/p\u003e\n\n## Benchmarks\n\n| Statement              | Operation       |\n| ---------------------- | --------------- |\n| COUNT with \\*          | 0.009784 ns/op  |\n| COUNT with Primary Key | 0.01063 ns/op   |\n| COUNT with Explain     | 0.0001766 ns/op |\n\n| Statement              | Operation     |\n| ---------------------- | ------------- |\n| LIKE with Leading %    | 0.1275 ns/op  |\n| LIKE without Leading % | 0.09251 ns/op |\n\n| Statement               | Operation          |\n| ----------------------- | ------------------ |\n| Offset Based Pagination | 204339916750 ns/op |\n| Cursor Based Pagination | 1339252750 ns/op   |\n\n| Statement                    | Operation       |\n| ---------------------------- | --------------- |\n| INSERT with Stored Procedure | 0.0002593 ns/op |\n| INSERT                       | 0.0001896 ns/op |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi3nloong%2Fsql-toxic-queries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsi3nloong%2Fsql-toxic-queries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsi3nloong%2Fsql-toxic-queries/lists"}