Skip to content

Conversation

@Naman-56-56
Copy link
Contributor

Fixes a slow query in tutorial search that loaded 10k+ rows on unfiltered requests.

  • Implemented database-level pagination in get_tutorials_list() using LIMIT/OFFSET instead of loading the full dataset
  • Limited sidebar results and avoided caching huge unfiltered querysets

Impact:

-Query time: 11–18s → 100–200ms (50–100x faster)
-Memory: 50–100 MB → ~100 KB
-Rows loaded: 10,000+ → 20

Unfiltered searches now load in ~200ms with no behavior changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant