{"id":21576074,"url":"https://github.com/leonwind/duckdb-adaptive-compression","last_synced_at":"2025-08-25T18:34:07.215Z","repository":{"id":171950398,"uuid":"585127915","full_name":"leonwind/duckdb-adaptive-compression","owner":"leonwind","description":"Code for our paper \"Adaptive Compression For Databases\" (EDBT '24)","archived":false,"fork":false,"pushed_at":"2023-11-27T14:40:04.000Z","size":77118,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T20:02:41.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openproceedings.org/2024/conf/edbt/paper-43.pdf","language":"C++","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/leonwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-01-04T11:45:16.000Z","updated_at":"2025-03-12T21:13:51.000Z","dependencies_parsed_at":"2025-01-24T13:51:07.508Z","dependency_job_id":null,"html_url":"https://github.com/leonwind/duckdb-adaptive-compression","commit_stats":null,"previous_names":["leonwind/duckdb-adaptive-compression"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonwind%2Fduckdb-adaptive-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonwind%2Fduckdb-adaptive-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonwind%2Fduckdb-adaptive-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonwind%2Fduckdb-adaptive-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonwind","download_url":"https://codeload.github.com/leonwind/duckdb-adaptive-compression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774894,"owners_count":21641731,"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":[],"created_at":"2024-11-24T12:15:09.781Z","updated_at":"2025-04-30T20:05:05.465Z","avatar_url":"https://github.com/leonwind.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdaCom: Adaptive Compression For Databases\nThis is our implementation of our paper \"Adaptive Compression For Databases\" (EDBT '24), where we adaptively compress infrequently accessed column segments using succinct encoding, in [DuckDB](https://github.com/duckdb/duckdb).\n\n## Installation\nOur implementation uses the [Succinct Data Structure Library (SDSL)](https://github.com/simongog/sdsl-lite/), and it can be installed with\n\n```shell\n./installSDSL.sh\n```\n\nAfterwards, DuckDB with our extension can be compiled with:\n\n```shell\nmkdir build\ncd build\ncmake -DBUILD_BENCHMARKS=1 -DBUILD_TPCH_EXTENSION=1 -GNinja -DCMAKE_BUILD_TYPE=Release ..\nninja\n```\n\n## Benchmarks\nOur benchmarks are in `/benchmark/micro/succinct` and can be run from the build directory with e.g.\n\n```shell\nbenchmark/benchmark_runner SuccinctZipfDistribution\n```\n\n### Build issue: Linking SDSL with DuckDB\nSome systems may experience issues linking the SDSL with DuckDB due to the error\n\n```\ncan not be used when making a shared object; recompile with -fPIC\n```\n\nOne fix is by adding the flag `-DCMAKE_POSITION_INDEPENDENT_CODE=ON` in `third_party/sdsl-lite/install.sh` in the line\n\n```\ncmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=\"${SDSL_INSTALL_PREFIX}\" .. # run cmake\n```\n\nresulting in \n\n```\ncmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=\"${SDSL_INSTALL_PREFIX}\" .. # run cmake \n```\n\nAfter adding the flag, re-running the `install.sh` script is necessary:\n\n```\ncd third_party/sdsl-lite\n./install.sh ../sdsl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonwind%2Fduckdb-adaptive-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonwind%2Fduckdb-adaptive-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonwind%2Fduckdb-adaptive-compression/lists"}