# Checkpointing

> What is a checkpoint in a database, why is it needed alongside WAL, and what are the trade-offs of checkpointing more or less often?

Canonical: https://www.internhack.in/learn/interview/database-design/db-checkpointing
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is a checkpoint in a database, why is it needed alongside WAL, and what are the trade-offs of checkpointing more or less often?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Checkpoint, Dirty Pages, WAL Replay, Recovery Time, max_wal_size

Previous: [Full-Text Search](https://www.internhack.in/learn/interview/database-design/db-full-text-search-vs-like) · Next: [Star vs. Snowflake](https://www.internhack.in/learn/interview/database-design/db-star-vs-snowflake-schema) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [Polymorphic Associations](https://www.internhack.in/learn/interview/database-design/db-polymorphic-associations)
- [Schema Migrations](https://www.internhack.in/learn/interview/database-design/db-database-migration-best-practices)
- [JSONB in SQL](https://www.internhack.in/learn/interview/database-design/db-json-b-data-type)
- [UPSERT](https://www.internhack.in/learn/interview/database-design/db-upsert-operation)
- [FK Performance](https://www.internhack.in/learn/interview/database-design/db-foreign-key-performance)
- [Redundancy Risks](https://www.internhack.in/learn/interview/database-design/db-data-redundancy-bad)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Database Design](https://www.internhack.in/learn/interview/database-design)
