All Questions
Database Indexing hard

A standard B-Tree cannot optimize `LIKE '%suffix'`. How does a Reverse Index solve this?

  1. A It utilizes a circular buffer architecture to ensure that the most recently updated records are always physically located at the start of the index.
  2. B It stores the strings in reverse character order, effectively turning a suffix-based search into a standard prefix-based B-Tree traversal.
  3. C It indexes the total character length of every string to allow the database to prune non-matching records based on a simple numeric range filter.
  4. D It utilizes specialized Trie-based data structures that are natively optimized for handling the high-frequency suffix collisions of modern datasets.

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

Get the app

Related questions