Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up listening history search by limiting the number of results #2979

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Add an advanced setting to display artwork in episode listing
([#2958](https://github.com/Automattic/pocket-casts-android/pull/2958))
* Bug Fixes
* Speed up listening history search
([#2979](https://github.com/Automattic/pocket-casts-android/pull/2979))
* Fix search podcast results scroll back to the start after subscribing
([#2923](https://github.com/Automattic/pocket-casts-android/pull/2923))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ abstract class EpisodeDao {
AND (UPPER(podcast_episodes.title) LIKE '%' || UPPER(:query) || '%' ESCAPE '\'
OR UPPER(podcasts.title) LIKE '%' || UPPER(:query) || '%' ESCAPE '\')
ORDER BY last_playback_interaction_date DESC
LIMIT 100
""",
)
abstract fun filteredPlaybackHistoryFlow(query: String): Flow<List<PodcastEpisode>>
Expand Down
Loading