All Questions
Postgresql medium

Which index type should be implemented to allow for efficient 'containment' queries on a `jsonb` column (e.g., using the `@>` operator)?

  1. A B-Tree Index: Optimized for range-based comparisons and equality on scalar data types.
  2. B Hash Index: Designed specifically for fast equality checks on large variable-length strings.
  3. C GIN (Generalized Inverted Index): Designed to map composite keys to their containing rows.
  4. D BRIN (Block Range Index): Optimized for scanning massive tables with naturally sorted data.

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

Get the app

Related questions