Files
CatsOfMastodon/PersonalNotes/faster-query.md

5 lines
181 B
Markdown
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