
MongoDB 8.0: Improving Performance, Avoiding Regressions
4/2/2025
Introduced a "performance army" approach to systematically improve MongoDB performance, building on a tiger team's initial work. Key technical contributions include the optimization of simple query paths by bypassing the general query planner for IDHACK, leading to the development of the ExpressPlan code path. Replication latency was reduced by changing the acknowledgment strategy to occur after journaling writes, before in-memory application. A new regression detection mechanism using instruction counting with Linux perf_event_open syscall was implemented to catch minor performance degradations. The broader "army" phase saw optimizations in query yielding, clustered collections for config.transactions, locking mechanisms, authorization checks, memory allocation (TCMalloc), and improvements in common code paths like namespace string handling and generated parsers.
