Bird
0
0

Why is it important to design filters that can be combined efficiently in a search system?

hard📝 Conceptual Q10 of 15
LLD - Design — Hotel Booking System
Why is it important to design filters that can be combined efficiently in a search system?
ATo avoid using indexes
BTo increase storage requirements
CTo reduce query latency and improve scalability
DTo make the user interface more complex
Step-by-Step Solution
Solution:
  1. Step 1: Understand filter combination impact

    Efficient filter combination reduces the time to get results and handles more users.
  2. Step 2: Evaluate other options

    Increasing storage or UI complexity or avoiding indexes harms performance or usability.
  3. Final Answer:

    To reduce query latency and improve scalability -> Option C
  4. Quick Check:

    Efficient filters = low latency + scalability [OK]
Quick Trick: Efficient filters lower latency and scale better [OK]
Common Mistakes:
  • Thinking filters increase storage need
  • Believing filters complicate UI
  • Avoiding indexes for filters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes