RL-driven compaction and learned indexes in AuraDB
StorageComments
I wonder if this could be applied to the vector search engines we've seen recently... like TALAdb... would learned indexes help with high-dimensional coordinate lookups?
Similar claims about learned indexes in earlier academic papers often fell apart during incremental updates. How does this handle the re-training cost when data distributions shift rapidly?
If values are 64KB and above, the bottleneck is usually disk I/O or memory bandwidth, not the index. I don't see how a learned index addresses the actual cost of moving those larger chunks.
This mirrors how some modern NVMe controllers manage NAND flash wear leveling. Using RL to handle garbage collection follows the same logic as optimizing compaction for large values.
Suppose the workload is read-heavy with a very predictable data distribution. The overhead of training the RL model for compaction might outweigh the gains compared to a properly tuned static policy.
The trade-off works because RL inference is negligible compared to the write amplification spikes in RocksDB. The reduction in tail latency for large values is the real win here.