Skip to content

Commit

Permalink
Speed up listening history search by limiting the number of results (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
geekygecko authored Oct 7, 2024
1 parent b850307 commit 4d00b63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 4d00b63

Please sign in to comment.