MySQL FULLTEXT too slow?
MygramDB delivers sub-80ms queries with in-memory indexing. No more timeout errors.
In-memory full-text search engine with MySQL 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 \
ghcr.io/libraz/mygram-db:latestecho "SEARCH articles hello world" | nc localhost 11016npm install mygramdb-clientimport { MygramClient } from 'mygramdb-client'
const client = new MygramClient({ host: 'localhost', port: 11016 })
const results = await client.search('articles', 'hello world')