---
title: "Improving Parquet Dedupe on Hugging Face Hub"
description: "Byte-level content-defined chunking dedupes Parquet appends almost perfectly: 10,000 appended rows give 99.1% dedupe and need about 20MB of new storage."
url: "https://swe.quest/articles/improving-parquet-dedupe-on-hugging-face-hub-fceac01ac834bf66"
canonical: "https://huggingface.co/blog/improve_parquet_dedupe"
source: "Hugging Face"
published: "2024-10-05"
difficulty: "medium"
kind: "Research"
reading_minutes: 5
tags: ["storage-systems","analytics","data-pipelines","algorithms"]
---

# Improving Parquet Dedupe on Hugging Face Hub

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-10-05, 5 min read, Research. Original: [https://huggingface.co/blog/improve\_parquet\_dedupe](https://huggingface.co/blog/improve_parquet_dedupe)

## Summary

Byte-level content-defined chunking dedupes Parquet appends almost perfectly: 10,000 appended rows give 99.1% dedupe and need about 20MB of new storage. A single-row edit drops dedupe to 89% (230MB new) because absolute file offsets in ColumnChunk/ColumnMetaData headers change in every column header. Deleting a row shifts the fixed-size row groups, and since each column is compressed, everything after the deletion becomes new data; turning off compression fixes dedupe but nearly doubles file size. Splitting row groups by a hash of a key column (content-defined row groups) keeps both compression and dedupe, and the proposed fixes are relative offsets in the format and CDC-aware row grouping in Parquet writers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- Parquet file layout
- content-defined chunking
- data deduplication

## Keywords

Apache Parquet, Content-Defined Chunking, Hugging Face Hub, Xet, Apache Arrow, FineWeb

## Related posts

- [Parquet Content-Defined Chunking](https://swe.quest/articles/parquet-content-defined-chunking-87ef6600fb11e475.md): Hugging Face · 2025-07-25 · Medium · 16 min read · Storage systems, Data pipelines, Python, Algorithms
  Parquet Content-Defined Chunking, now available in PyArrow and Pandas via the use\_content\_defined\_chunking option, writes Parquet data pages so that small logical edits produce minimal byte-level differences.
- [A Deep Dive into Apache Parquet with ClickHouse - Part 2](https://swe.quest/articles/a-deep-dive-into-apache-parquet-with-clickhouse-part-2-6aca5ceaeed12095.md): ClickHouse · 2023-04-26 · Medium · 23 min read · Analytics & OLAP, Storage engines, Performance engineering, Data pipelines
  Parquet files are organized into row groups, column chunks and pages, with dictionary, RLE/bit-packing and delta encodings plus footer metadata and min/max statistics that let readers push down projections and predicates.
- [ClickHouse Release 23.8](https://swe.quest/articles/clickhouse-release-23-8-8db1ebb65d969c75.md): ClickHouse · 2023-09-15 · Medium · 10 min read · Analytics & OLAP, Query engines, Data pipelines, Performance engineering
  ClickHouse 23.8 makes file reads much faster by using Parquet row-group min/max statistics to skip data, answering count() from file metadata, and pruning files via the \_file virtual column without reading them.
- [DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub](https://swe.quest/articles/duckdb-analyze-50-000-datasets-stored-on-the-hugging-face-hub-05ca0d0e06164c0a.md): Hugging Face · 2023-06-07 · Medium · 3 min read · Analytics & OLAP, SQL, Python
  Every public dataset on the Hugging Face Hub is now automatically converted to Parquet by the dataset viewer and can be queried with SQL through DuckDB.
- [ClickHouse Release 25.8](https://swe.quest/articles/clickhouse-release-25-8-24e052d1705201ca.md): ClickHouse · 2025-09-05 · Medium · 13 min read · Analytics & OLAP, Query engines, Performance engineering, Data pipelines
  ClickHouse 25.8 ships 45 features, 47 performance optimizations and 119 bug fixes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
