Optimize full-text search in Amazon RDS for MySQL and Amazon Aurora MySQL
Database Blog
This article provides comprehensive guidance on optimizing full-text search (FTS) performance in Amazon RDS for MySQL and Aurora MySQL-Compatible Edition.
- FTS indexes require regular maintenance unlike standard B-tree indexes due to complex inverted index architecture
- Increase innodb_ft_sort_pll_degree (1-16 threads) to accelerate FTS index creation on large tables
- Raise innodb_sort_buffer_size to 64 MB to improve large table indexing performance
- Unmaintained FTS causes semaphore waits, slower DML operations, degraded search performance
- Schedule OPTIMIZE TABLE during low-traffic periods using innodb_optimize_fulltext_only parameter
- Configure innodb_ft_cache_size to 32-64 MB for heavy write workloads (default: 8 MB)
- Monitor Aurora_fts_cache_memory_used, fragmentation percentage, and RollbackSegmentHistoryListLength metrics
- Run OPTIMIZE TABLE multiple times based on index size (100-5000+ iterations for large datasets)
- Create dedicated low-privilege maintenance user accounts for scheduled optimization tasks
Regular FTS maintenance prevents database crashes, duplicate key errors, and search inconsistencies by proactively managing index fragmentation and cache accumulation.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
Sep 22
2025
2025
Migrate full-text search from SQL Server to Amazon Aurora PostgreSQL-compatible edition or Amazon RDS for PostgreSQL
Mar 11
2026
2026
Migrate Cloud SQL for MySQL to Amazon Aurora and Amazon RDS for MySQL Using AWS DMS
Oct 16
2025
2025
Performance optimization strategies for MySQL on Amazon RDS
May 7
2026
2026
Full-text, exact-match, range, and hybrid search on Amazon ElastiCache
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.