{"id":20147457,"url":"https://github.com/dittofeed/clickhouse-segments-tutorial","last_synced_at":"2025-09-21T08:31:29.576Z","repository":{"id":217590085,"uuid":"743827354","full_name":"dittofeed/clickhouse-segments-tutorial","owner":"dittofeed","description":"Repository demonstrating how to calculate user segments in Clickhouse.","archived":false,"fork":false,"pushed_at":"2024-02-02T01:04:00.000Z","size":20,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T22:33:29.072Z","etag":null,"topics":["clickhouse","customer-engagement","customer-segmentation"],"latest_commit_sha":null,"homepage":"https://www.dittofeed.com/","language":"TypeScript","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/dittofeed.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}},"created_at":"2024-01-16T04:24:48.000Z","updated_at":"2024-11-02T12:03:41.000Z","dependencies_parsed_at":"2024-01-19T22:23:06.505Z","dependency_job_id":"d41009c0-e9cc-4dc3-bb60-de673155998d","html_url":"https://github.com/dittofeed/clickhouse-segments-tutorial","commit_stats":null,"previous_names":["dittofeed/clickhouse-segments-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fclickhouse-segments-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fclickhouse-segments-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fclickhouse-segments-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fclickhouse-segments-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dittofeed","download_url":"https://codeload.github.com/dittofeed/clickhouse-segments-tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233731144,"owners_count":18721286,"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":["clickhouse","customer-engagement","customer-segmentation"],"created_at":"2024-11-13T22:29:08.533Z","updated_at":"2025-09-21T08:31:24.300Z","avatar_url":"https://github.com/dittofeed.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clickhouse Segments Tutorial\n\nThis repository provides a tutorial on how to implement live user segmentation in ClickHouse.\n\nIt accompanies a [technical blog post](https://dev.to/dittofeed-max/how-we-stopped-our-clickhouse-db-from-exploding-2969), which can be read in parallel.\n\nThese test implementations are written in ascending order of complexity.\n\n1. [Naive](./src/1-naive.test.ts)\n2. [Idempotent](./src/2-idempotent.test.ts)\n3. [Micro-Batch](./src/3-microBatch.test.ts)\n4. [Event Time vs. Processing Time](./src/4-eventTime.test.ts)\n\nIf you found this interesting, we'd love it if you shot over to our main repo and gave us a star! 🌟\n\nhttps://github.com/dittofeed/dittofeed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdittofeed%2Fclickhouse-segments-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdittofeed%2Fclickhouse-segments-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdittofeed%2Fclickhouse-segments-tutorial/lists"}