How does a hash index differ from a B-tree index?
You need to speed up two queries: finding a user by email = 'a@example.com' and retrieving orders where created_at >= '2026-01-01'. Which comparison conditions do hash indexes and B-tree indexes support? Which index would you choose for each query in PostgreSQL, and why? Can you make the same choices in MySQL InnoDB?
ExplainIndexesJuniorBackendData EngineerQA