alibaba/AliSQL

AliSQL is a MySQL branch originated from Alibaba Group. Fetch document from Release Notes at bottom.

What it solves

AliSQL addresses the limitations of standard MySQL in handling modern, high-performance analytical workloads and AI-driven vector search. It bridges the gap between traditional transactional databases and the need for high-speed data analysis and vector similarity search without requiring developers to switch database systems.

How it works

AliSQL is a branch of MySQL 8.0 that integrates specialized storage engines and indexing capabilities directly into the MySQL ecosystem. It embeds a DuckDB storage engine for high-performance analytical queries (OLAP) and adds native HNSW vector indexes to the InnoDB engine. Because it maintains the standard MySQL client protocol, existing applications can leverage these advanced features using standard SQL commands and existing drivers.

Who it’s for

This project is for database administrators and backend engineers who use MySQL but need to perform complex analytical aggregations or integrate AI vector search (such as RAG applications) directly within their existing database infrastructure.

Highlights

  • DuckDB Integration: Provides a columnar storage engine for analytical tables, delivering significant speedups (up to 200x in TPC-H benchmarks) compared to standard InnoDB.
  • Native Vector Search: Supports VECTOR data types and HNSW indexing for high-performance Approximate Nearest Neighbor (ANN) search, supporting up to 16,383 dimensions.
  • Native Flashback: Allows querying historical data states using AS OF TIMESTAMP syntax by leveraging retained undo snapshots.
  • Operational Optimizations: Includes advanced binlog handling (Binlog Realtime Replication and Binlog in Redo) to reduce I/O overhead and improve crash recovery performance.

Related

  • Project
  • Project
  • Project
  • Project
  • Project