Files
CatsOfMastodon/PersonalNotes/faster-query.md

181 B
Executable File

How did I go from 4 second on each API request to under 1 second?

1. Using projection to limit fields

2. Using proper indexes

3. Using $sample along with aggregation