How do you deal with real-time searching (friends, items...) with Supabase?

Database & APIs
Resolved

Hi everyone,

I'm currently wondering if there is a better way to search for elements from my database. Let's say for instance that an user wants to search for friends, or products. He would then type his search query in a dedicated searchbar and the info would popup; aka each keystroke would modify the query in real-time. The issue is that, by doing so, it would spam supabase query for each new character input. Is there a way for fixing this?

What have you tried so far?

For now, I just have a dedicated search button. When the user have finished typing his query, he would press the search button, which would then do a supabase query getting the elements that correspond to their demand. So not in realtime

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies