tegdb-server: Putting a PostgreSQL-Compatible Protocol in Front of TegDB

tegdb-server explores how a small embedded database can be exposed through a PostgreSQL-compatible server surface.

June 1, 2026 · 2 min · 327 words · Jack Yu

scale-kv: A Storage Experiment About Complexity

scale-kv is a Rust storage experiment that explores transactional KV, page structures, quorum behavior, and distributed-system complexity.

May 30, 2026 · 2 min · 337 words · Jack Yu

QuackLake: A DuckDB-WASM Analytics Prototype

QuackLake explores a WASM-first analytics shape with DuckDB-WASM, object storage, a range gateway, and a small control plane.

May 29, 2026 · 2 min · 302 words · Jack Yu

TegDB: Notes from Building a Small Embedded Database

TegDB is a small embedded database experiment focused on simplicity, reliability, WAL recovery, and a SQL-like interface.

May 27, 2026 · 2 min · 323 words · Jack Yu

OB Sizer: Turning Migration Sizing into a Browser Tool

OB Sizer is a frontend-only capacity estimator for OceanBase migration conversations.

May 24, 2026 · 2 min · 331 words · Jack Yu

OceanBase Internals: Transactions, Replay, SQL Engine, and Unit Placement

OceanBase targets high availability and scalability in a shared-nothing cluster. The core engineering challenge is to make four critical subsystems work together with predictable…

January 17, 2026 · 8 min · 1517 words · Jack Yu

How to Use the HTTP API in TiDB with TLS Enabled

Many customers have TLS enabled, which is different from the lab environment.

May 22, 2023 · 1 min · 56 words · Jack Yu

How to Compare Data Consistency between MySQL and PostgreSQL

Recently, I encountered a problem where a user wanted to synchronize data from PostgreSQL to TiDB (which uses the same protocol as MySQL) and wanted to know whether the data after…

May 9, 2021 · 3 min · 461 words · Jack Yu

How to Implement a Simple Load Using Sysbench

Sysbench is a tool commonly used in database testing. Since version 1.0, it has supported more powerful custom functions, allowing users to conveniently write some Lua scripts to…

December 14, 2020 · 3 min · 499 words · Jack Yu

How to Read TiDB Source Code (Part 5)

When using TiDB, you may occasionally encounter some exceptions, such as the “Lost connection to MySQL server during query” error. This indicates that the connection between the…

September 8, 2020 · 5 min · 892 words · Jack Yu