All Questions
Postgresql medium

Under what condition can PostgreSQL execute an 'Index-Only Scan' to satisfy a query without visiting the table's heap storage?

  1. A If the table has been fully vacuumed and the index contains all columns requested in the query.
  2. B If the query uses the `DISTINCT` keyword on a column that is marked as a Primary Key.
  3. C If the table is partitioned using the native declarative range-based strategy on date objects.
  4. D If the database is running on an NVMe SSD that supports direct-access memory mapping.

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

Get the app

Related questions