{"id":14972041,"url":"https://github.com/laggat/dimensiontabler","last_synced_at":"2026-02-13T05:45:13.370Z","repository":{"id":62568270,"uuid":"120105991","full_name":"LaggAt/DimensionTabler","owner":"LaggAt","description":"Builds dimension tables with configurable/variable granularity. Keeps those tables up-to-date.  This makes reporting queries performant and doable. I use it with https://grafana.com/","archived":false,"fork":false,"pushed_at":"2025-01-07T08:02:02.000Z","size":79,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T18:51:08.150Z","etag":null,"topics":["dimension-tables","grafana","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaggAt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","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":"2018-02-03T16:01:12.000Z","updated_at":"2020-11-17T17:39:02.000Z","dependencies_parsed_at":"2025-02-23T19:24:00.391Z","dependency_job_id":"cac94c5d-e765-4ff1-a301-149237718c80","html_url":"https://github.com/LaggAt/DimensionTabler","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaggAt%2FDimensionTabler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaggAt%2FDimensionTabler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaggAt%2FDimensionTabler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaggAt%2FDimensionTabler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaggAt","download_url":"https://codeload.github.com/LaggAt/DimensionTabler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249188427,"owners_count":21227015,"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":["dimension-tables","grafana","python"],"created_at":"2024-09-24T13:46:17.016Z","updated_at":"2026-02-13T05:45:13.346Z","avatar_url":"https://github.com/LaggAt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DimensionTabler\n\nBuilds dimension tables with configurable/variable grainularity. Keeps those tables up-to-date. \nThis makes reporting queries performant and doable. I use it with [grafana](https://grafana.com/).\n\nBtw: this is a bad \"denglish\" name, suggest a better one.\n\n## I'm interested, some details please\n\nLet's do an example. We do gather tickers for a bunch of cryptocurrencies. \nWe do that every minute for the top 10 currencies. This makes 864k lines per day.\n\nNow we want to show them on a graph using grafana - great this works. \nlater we join more and more information into this graph (e.g. balance we hold on each coin), the query gets slower and slower, and finally times out.\n\nHere DimensionTabler jumps in. We want to be able to see long term ticker graphs, and we want to be able to see short term graphs in more detail. Let's put this in a table:\n\n| Ticker date             | granularity        |       original count | dim.table count | reduced to % |\n|-------------------------|--------------------|---------------------:|----------------:|-------------:|\n| last 24 hours           | every ticker value | every minute = 1,440 |           1,440 |           0% |\n| last 7 days             | 15 minutes         |    (6 days) = +8,640 |     /15' = +576 |          20% |\n| last 30 days            | 1 hour             |              +33,120 |            +552 |         5.9% |\n| last 90 days            | 4 hours            |              +86,400 |            +360 |         2.3% |\n| before 90 days:         |                    |                      |                 |              |\n| ... stat for 1 year     | 1 day              |             +396,000 |            +275 |         0.6% |\n| ... for another 9 years | 1 day              |           +4,730,400 |          +3,285 |         0.1% |\n\nSo for 10 years our graph sql result counts 6,488 lines, the unfiltered result has 5,256,000 lines. \nJust by ignoring really unneded detail. DimensionTabler keeps this up-to-date and applies given rules.\n\n## Usage\n\nSee [Example.py](https://github.com/LaggAt/DimensionTabler/blob/master/Example.py)\n\n## Donate\n\nSupport me with bitcoins:\n\n![Imgur](https://i.imgur.com/ltpF0A4m.png)\n\n1MiToswzMsrhQEfmZbLQT8PHC68E5JhJzh\n\nThanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaggat%2Fdimensiontabler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaggat%2Fdimensiontabler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaggat%2Fdimensiontabler/lists"}