Modern Search: Finesse

Episode #335 • Aug 18, 2025 • Subscriber-Only

We now have a very basic search feature in place, but it can be improved. We will add some bells and whistles and other performance improvements, including debouncing database queries, adding a count query to display the number of completed reminders, and grouping the queries into a single transaction.

Previous episode
Modern Search: Finesse
Next episode
Locked

Unlock This Episode

Our Free plan includes 1 subscriber-only episode of your choice, plus weekly updates from our newsletter.

Sign in with GitHub

Introduction

Stephen

We now have rudimentary searching in our app. We simply split the user-entered search term on spaces to get an array of search sub-terms. And then we search for each of those sub-terms in the reminders table by checking if the term matches as a substring in the title or notes of the reminder.

Brandon

Let’s amp things up a bit though. There are few fun bells and whistles that the real Reminders app in iOS implements in its search that we have not yet captured. For example, it shows the number of completed reminders that satisfy the search parameters and give you the option to delete all of those reminders or just hide them. You can also search tags, not just the title and notes of reminders.

Let’s see what it takes to add some of these more advanced querying options to our search feature.

Rounding out the demo


References

Downloads

Sample code

Get started with our free plan

Our free plan includes 1 subscriber-only episode of your choice, access to 73 free episodes with transcripts and code samples, and weekly updates from our newsletter.

View plans and pricing