Overview of Reladiff
masterReladiff is a high-performance tool and library designed for diffing large datasets across different databases. It achieves high performance by executing diff calculations within the database itself, which minimizes data transfer.
Reladiff supports two primary modes of operation:
- Cross-Database Diff: Uses a divide-and-conquer algorithm based on matching hashes to identify modified segments. It only downloads the necessary data for comparison, making it highly efficient when differences are minimal. It can handle precision mismatches (e.g., different timestamp precisions) by rounding according to database specifications.
- Intra-Database Diff: When both tables are in the same database, Reladiff uses a join operation for comparison. This mode supports materializing the diff into a local table and collecting extra statistics.
Reladiff is threaded for performance, highly configurable, and outputs both JSON and git-like diffs (+ and -) for easy integration into CI/CD pipelines.