Back to results for “Performance”
Redis › Persistence (RDB/AOF)

What happens during Redis startup regarding data loading, and how does the choice between RDB and AOF affect startup time for a large dataset?

Advanced

Answer

When Redis starts, it loads its dataset from either the AOF file or the RDB snapshot depending on your configuration, and since AOF files can be significantly larger and require replaying potentially many individual write operations, startup time using AOF can be noticeably slower for very large datasets compared to loading a single compact RDB snapshot directly into memory.
-- Check current persistence configuration affecting startup behavior
CONFIG GET appendonly
CONFIG GET dir
Real-world example A team notices their Redis instance takes significantly longer to restart after enabling AOF for a very large dataset, and mitigates this by ensuring AOF rewrites happen regularly to keep the file as compact as possible.

Common follow-ups: How do you measure and test Redis startup time for your specific dataset size?;Are there configuration options to speed up AOF loading during startup?