MygramDB vs Distributed Search Engines vs MySQL FULLTEXT
The right full-text search option depends on your requirements. This page compares the three.
The assumption behind this comparison
MygramDB targets one specific case: the system of record is already in MySQL or MariaDB, and only search needs to be faster. If you want a search engine at the center of your data platform, or you need distributed analytics, a distributed search engine is the better fit.
Quick Comparison
| Feature | MygramDB | Distributed search engine | MySQL FULLTEXT |
|---|---|---|---|
| Latency | Measured | Not measured here | Measured |
| Deployment | Separate search service | Single node or cluster | Built into MySQL |
| Data sync | MySQL / MariaDB binlog | Application or connector indexing | Native data |
| Scaling | Full replicas; application-managed partitions | Distributed indexes | Database-level replication (MySQL FULLTEXT does not support partitioned tables; MySQL docs) |
| Memory | Measured | Depends on index and workload | Buffer pool and workload |
| Multibyte / Unicode | n-gram (ICU NFKC) | Configurable analyzers | Configurable parser |
| Aggregation | FACET | Aggregations | SQL queries |
Detailed Comparison
MygramDB
Best for: MySQL-based applications whose indexed data fits in one node's RAM and can route search requests to a separate API.
Pros:
- Cache-off benchmark results published with the test configuration
- Binlog-based data sync (MySQL 8.4/9.7/26.x and MariaDB 10.11+/11.x/12.x)
- Single binary deployment (MySQL still needs its own setup and an initial sync)
- No cluster management
- Language-agnostic n-gram tokenization with first-class multibyte UTF-8 support
- BM25 relevance scoring, highlighting, fuzzy search, faceted aggregation, and synonym expansion
- Filtered list pages and counts without search text, served from the index
Cons:
- Single node only (no distributed search)
- Data must fit in RAM
What "no ETL" actually means
Your application never pushes search documents anywhere. It does not mean zero setup: MySQL still needs GTID, ROW-format binlog, a replication user, and an initial SYNC per table.
Distributed Search Engine
Best for: Large-scale search with advanced analytics requirements.
Pros:
- Horizontal scalability across nodes
- Analytics and aggregations beyond facet counts
Cons:
- Cluster management at scale
- Requires a separate data-indexing path when MySQL is the source of truth
MySQL FULLTEXT
Best for: Search requirements already met by MySQL without a separate service.
Pros:
- No additional infrastructure
- Native MySQL integration
- Zero data sync overhead
Cons:
- Query-dependent latency and throughput; see the cache-off benchmark
- Performance depends on queries, buffer-pool state, and available resources
Performance Comparison
See Benchmarks for the current cache-off results and full test configuration.
Migration Path
From MySQL FULLTEXT to MygramDB
- Keep MySQL as primary database
- Deploy MygramDB alongside
- Point search queries to MygramDB
- Write operations remain on MySQL
HTTP routes changed in v1.7.0
The HTTP API uses /tables/{identity}/search from v1.7.0 onward; the older /{table}/search form was removed. Check Upgrade to v1.7 before migrating.
Follow the Docker deployment guide to configure the MySQL source, credentials, bind addresses, and network allowlist. Build the initial index with SYNC or enable replication.auto_initial_snapshot, then send search requests to MygramDB's TCP or HTTP API.
From a Distributed Search Engine to MygramDB
Consider migrating if:
- You don't need distributed search
- Data fits in single-node RAM
- Operational complexity is a concern
- You want simpler MySQL integration
See GitHub for more details.