Skip to content

Optimize tutorial search queries and reduced slow loading time#647

Open
Naman-56-56 wants to merge 1 commit intoSpoken-tutorial:masterfrom
Naman-56-56:fix/slow-tutorial-search
Open

Optimize tutorial search queries and reduced slow loading time#647
Naman-56-56 wants to merge 1 commit intoSpoken-tutorial:masterfrom
Naman-56-56:fix/slow-tutorial-search

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