MySQL FULLTEXT too slow?
MygramDB delivers sub-millisecond queries with in-memory indexing. No more timeout errors.
In-memory search engine with MySQL / MariaDB binlog replication
MySQL requires GTID mode and a replication user:
SET GLOBAL gtid_mode = ON;
CREATE USER 'repl_user'@'%' IDENTIFIED BY 'your_password';
-- SELECT: for initial snapshot of search target tables
GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON mydb.* TO 'repl_user'@'%';docker run -d --name mygramdb \
-p 11016:11016 -p 8080:8080 \
-e MYSQL_HOST=your-mysql-host \
-e MYSQL_USER=repl_user \
-e MYSQL_PASSWORD=your_password \
-e MYSQL_DATABASE=mydb \
-e TABLE_NAME=articles \
-e NETWORK_ALLOW_CIDRS=0.0.0.0/0 \
ghcr.io/libraz/mygram-db:latestWARNING
NETWORK_ALLOW_CIDRS=0.0.0.0/0 allows connections from any IP. For production, restrict to specific ranges (e.g., 10.0.0.0/8,172.16.0.0/12).
echo "SEARCH articles hello world" | nc localhost 11016npm install mygramdb-clientyarn add mygramdb-clientbun add mygramdb-clientimport { MygramClient } from 'mygramdb-client'
const client = new MygramClient({ host: 'localhost', port: 11016 })
const results = await client.search('articles', 'hello world')go get github.com/libraz/go-mygram-clientimport mygram "github.com/libraz/go-mygram-client"
client := mygram.NewClient("localhost:11016")
defer client.Close()
client.Connect()
resp, _ := client.Search("articles", "hello world", mygram.SearchOptions{})pip install mygramdb-clientfrom mygramdb_client import MygramClient, ClientConfig
client = MygramClient(ClientConfig(host='localhost', port=11016))
await client.connect()
results = await client.search('articles', 'hello world')python-mygramdb-client on GitHub
A lightweight MySQL / MariaDB CDC (Change Data Capture) engine extracted from MygramDB. Parses binlog replication events and provides a streaming API for applications. Supports MySQL 8.4/9.x (VECTOR type, RSA auth) and MariaDB 10.11+/11.x (flavor auto-detection, domain-server-seq GTID, ANNOTATE_ROWS). Node.js (N-API) and Python (ctypes) bindings.