All Questions
Database Indexing medium

You have a `VARCHAR(5000)` column. Why might you use a Prefix Index `(col(20))` instead of a full index?

  1. A To enable native support for complex regular expression searches and partial string matching that are typically only available in specialized full-text search engines.
  2. B To significantly reduce the size of each index entry, allowing more keys per page (higher fan-out) and ensuring the index remains in the RAM-based buffer pool.
  3. C To enforce global case-insensitivity across several disparate partitions without requiring the use of specialized database collations or manual string transformations.
  4. D Prefix indexes are a mandatory requirement for indexing JSON or XML data types in most modern relational databases to ensure structural validity.

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

Get the app

Related questions