Skip to content
Browser internals·Intermediate·Conceptual·1 min read

Why is IndexedDB preferred for larger datasets?

Short interview answer

It is asynchronous, so it doesn't block the main thread, supports structured and binary data, indexes, and transactions, and has a much larger practical storage quota than localStorage or sessionStorage.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Client-side storage

Related questions