Bintrail: MySQL Time-Travel Queries Using Indexed Binlogs

· Source: InfoQ · Field: Technology & Digital — Software Development & Engineering, Data Science & Analytics, Cloud Computing & IT Infrastructure · Depth: Intermediate, short

Summary

Bintrail, a new layer introduced on May 21, 2026, brings point-in-time queries and row-history lookups to MySQL, a major relational database previously lacking native temporal querying. It achieves this by indexing MySQL ROW-format binary logs and routing queries through ProxySQL, all without modifying MySQL or application code. Bintrail supports "AS OF" and "BETWEEN" time-travel queries, enabling users to query data as of a past timestamp or review change history for recovery and audit. It parses binlogs, indexes row events with before/after images, and generates reversal SQL. The system maintains an independent indexed history store, allowing queries to span longer periods and extend into archived Parquet data on S3. Available on GitHub under BUSL, Bintrail currently supports literal timestamp queries, primary-key lookups, and capped full-table restores.

Key takeaway

For Data Engineers managing MySQL instances, Bintrail offers a critical solution for historical data access and recovery. If you need to perform point-in-time restores or audit row-level changes without complex binlog replay, consider integrating Bintrail. This allows you to query past data states directly. It significantly reduces recovery time and risk in environments with increasing automation and rapid operational changes. Evaluate its BUSL license and current limitations regarding joins and complex filtering.

Key insights

MySQL can gain native-like time-travel and row-history querying capabilities without core modifications, using indexed binlogs and ProxySQL.

Principles

Method

Bintrail parses MySQL ROW-format binlogs, indexes row events with before/after images, generates reversal SQL, and routes "AS OF"/"BETWEEN" queries via ProxySQL to its history store.

In practice

Topics

Code references

Best for: CTO, VP of Engineering/Data, Product Manager, Data Engineer, Software Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by InfoQ.