All Questions
Database Indexing hard

What is the benefit of `CREATE INDEX (A) INCLUDE (B)` vs `CREATE INDEX (A, B)`?

  1. A The `INCLUDE` column is only stored in the leaf nodes, keeping the index's internal branch nodes lean and the overall tree height shallow.
  2. B It utilizes significantly less physical disk space than a standard composite index by applying advanced delta-compression to the non-key columns.
  3. C All columns listed in the `INCLUDE` clause are automatically encrypted at the storage level to ensure a high level of data privacy for sensitive fields.
  4. D The `INCLUDE` column is stored in Every node of the B-Tree, ensuring that point-lookups can resolve the value without visiting the leaf nodes.

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

Get the app

Related questions