whatisgithub

What is alisql?

alibaba/alisql — explained in plain English

Analysis updated 2026-06-26

5,812C++Audience · developerComplexity · 4/5Setup · hard

In one sentence

A MySQL 8.0 fork from Alibaba that adds a built-in analytics engine powered by DuckDB (about 200x faster for complex queries) and native vector search, fully compatible with existing MySQL drivers and SQL syntax as a drop-in replacement.

Mindmap

mindmap
  root((AliSQL))
    What It Does
      MySQL 8.0 fork
      Drop-in compatible
      Alibaba Cloud
    Analytics Engine
      DuckDB columnar
      200x faster queries
      Per-table engine choice
    Vector Search
      HNSW indexing
      Up to 16383 dimensions
      AI similarity search
    Setup
      Build from source
      CMake and GCC
      Wiki documentation
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run complex analytical queries with GROUP BY and aggregations about 200x faster than InnoDB by creating tables with the DuckDB columnar engine.

USE CASE 2

Store AI embeddings alongside regular relational data and do fast semantic similarity search using AliSQL's built-in HNSW vector index.

USE CASE 3

Replace MySQL 8.0 with AliSQL as a drop-in to gain analytics and vector capabilities without rewriting application queries or changing drivers.

USE CASE 4

Mix transactional InnoDB tables and analytical DuckDB tables in the same database, choosing the storage engine per table at creation time.

What is it built with?

C++MySQLDuckDBCMakePython

How does it compare?

alibaba/alisql0xz0f/z0fcourse_reverseengineeringlandrop/landrop
Stars5,8125,8215,831
LanguageC++C++C++
Setup difficultyhardeasyeasy
Complexity4/54/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Must be compiled from source using CMake, Python 3, and GCC or Clang, no prebuilt binaries are mentioned in the README.

So what is it?

AliSQL is a modified version of MySQL, the widely used open-source database, built and maintained by Alibaba. It is based on MySQL 8.0 and is fully compatible with standard MySQL tools, drivers, and SQL syntax, meaning you can use it as a drop-in replacement without changing how you write queries or connect your applications. The main additions over standard MySQL are two: a built-in analytics engine powered by DuckDB, and native support for vector search. The DuckDB engine uses a columnar storage format that is designed for running complex analytical queries across large datasets, which is a different kind of workload than typical transactional queries that read and write individual rows. The README claims around 200 times faster performance on analytical queries compared to the standard InnoDB storage engine. You pick the engine per table when you create it, so transactional tables and analytical tables can coexist in the same database. The vector search feature lets you store high-dimensional numerical arrays alongside regular data and then search for the closest matches by mathematical distance. This is the kind of operation used in AI applications when you want to find content that is semantically similar to a query, rather than finding exact keyword matches. AliSQL supports vectors with up to 16,383 dimensions and includes an indexing method called HNSW for fast approximate nearest-neighbor lookups. AliSQL was open-sourced by the Alibaba Cloud Database Team in December 2025. Building it from source requires CMake, Python 3, and either GCC or Clang. Planned future additions include faster schema changes, quicker crash recovery, and replication improvements. Full documentation and setup guides are included in the repository's wiki directory.

Copy-paste prompts

Prompt 1
Show me the SQL syntax to create a table in AliSQL using the DuckDB columnar engine and run a GROUP BY aggregation on millions of rows.
Prompt 2
I want to store OpenAI text embeddings in AliSQL and do nearest-neighbor search. Show me how to define a vector column and create an HNSW index on it.
Prompt 3
I'm migrating from MySQL 8.0 to AliSQL. What compatibility differences should I check before switching my production app?
Prompt 4
Walk me through building AliSQL from source on Ubuntu, what CMake flags are required and which GCC or Clang version is supported?
Prompt 5
How do I write a JOIN in AliSQL between a regular InnoDB transactional table and a DuckDB analytical table in the same database?

Frequently asked questions

What is alisql?

A MySQL 8.0 fork from Alibaba that adds a built-in analytics engine powered by DuckDB (about 200x faster for complex queries) and native vector search, fully compatible with existing MySQL drivers and SQL syntax as a drop-in replacement.

What language is alisql written in?

Mainly C++. The stack also includes C++, MySQL, DuckDB.

How hard is alisql to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is alisql for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.