All Questions
Scaling Writes easy

Why is inserting 1,000 rows in a single 'Batch' query faster than executing 1,000 separate `INSERT` queries?

  1. A The database does not check permissions for batches.
  2. B It uses less disk space.
  3. C It reduces Network Round Trips and transaction overhead significantly.
  4. D It prevents database locks.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions