Skip to content

alibaba/AliSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AliSQL

AliSQL is Alibaba's MySQL branch, forked from official MySQL and used extensively in Alibaba Group's production environment. It includes various performance optimizations, stability improvements, and features tailored for large-scale applications.

Version Information

  • AliSQL Version: 8.0.44 (LTS)
  • Based on: MySQL 8.0.44

Features

  • DuckDB Storage Engine:AliSQL integrates DuckDB as a native storage engine, allowing users to operate DuckDB with the same experience as MySQL. By leveraging AliSQL for rapid deployment of DuckDB service nodes, users can easily achieve lightweight analytical capabilities.

Roadmap

  • Vector Storage (planned):AliSQL natively supports enterprise-grade vector processing for up to 16,383 dimensions. By integrating a highly optimized HNSW algorithm for high-performance Approximate Nearest Neighbor (ANN) search, AliSQL empowers users to build AI-driven applications—such as semantic search and recommendation systems—seamlessly using standard SQL interfaces.

  • DDL Optimization (planned):AliSQL delivers a faster, safer, and lighter DDL experience through innovations such as enhanced Instant DDL, parallel B+tree construction, a non-blocking lock mechanism, and real-time DDL apply—significantly improving schema change efficiency and virtually eliminating replication lag.

  • RTO Optimization (planned):AliSQL deeply optimizes the end-to-end crash recovery path to accelerate instance startup, shorten RTO, and restore service quickly.

  • Replication Optimization (palned): AliSQL significantly boosts replication throughput and minimizes lag by implementing Binlog Parallel Flush, Binlog in Redo, and specialized optimizations for large transactions and DDL operations.

Getting Started

Prerequisites:

  • CMake 3.x or higher
  • Python3
  • C++17 compliant compiler (GCC 7+ or Clang 5+)

Build Instructions:

# Clone the repository
git clone https://github.com/alibaba/AliSQL.git
cd AliSQL

# Build the project (release build)
sh build.sh -t release -d /path/to/install/dir

# For development/debugging (debug build)
sh build.sh -t debug -d /path/to/install/dir

# Install the built MySQL server
make install

Build Options:

  • -t release|debug: Build type (default: debug)
  • -d <dest_dir>: Installation directory (default: /usr/local/alisql or $HOME/alisql)
  • -s <server_suffix>: Server suffix (default: alisql-dev)
  • -g asan|tsan: Enable sanitizer
  • -c: Enable GCC coverage (gcov)
  • -h, --help: Show help

Support

For DuckDB-specific support, see the DuckDB Support Options.

Contributing

AliSQL 8.0 became an open-source project in December 2025 and is actively maintained by engineers at Alibaba Group.

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with appropriate tests
  4. Submit a pull request

For bug reports and feature requests, please use the GitHub Issues page.

License

This project is licensed under the GPL-2.0 license. See the LICENSE file for details.

AliSQL is based on MySQL, which is licensed under GPL-2.0. The DuckDB integration follows the same licensing terms.

See Also

About

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

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published