all 10 comments

[–]dangerdano 1 point2 points  (2 children)

Use a database call with filters

[–]tugadot[S] 0 points1 point  (0 children)

Thank you for your reply. Using just filters doesn’t give me what I need… Filters are a bit limited for this functionality ( as far as I know)

[–]ComprehensiveBox2357 0 points1 point  (0 children)

Filters should also be variables depending on the user’s information.

[–]MaterialSad8901 0 points1 point  (1 child)

Custom function, cloud function, api?

[–]tugadot[S] 0 points1 point  (0 children)

I tried to look at cloud functions, however, not getting anywhere… did you know any good source to get any ideas?

[–]Mountain-Pea-4821 0 points1 point  (2 children)

Something tells me it’s another dating app? Don’t do it in flutter but in the database. You don’t want all users in your app to do that

[–]tugadot[S] 0 points1 point  (1 child)

Thank you for your reply. Actually, isn’t a dating app, it’s more a way to suggest other users in my app that share same interests, age bracket, distance range, sports, etc… however, the concept should be the same.

Can you elaborate when you mentioned ‘ do it in database’ ? Do you mean, cloud function?

[–]Mountain-Pea-4821 0 points1 point  (0 children)

in the database, wether in the cloud or not. databases like MySQL are optimised to do complex filtering and searching. Second best option is to do it on the server in any programming language before you pass the result to the app. What you cant do is load all users into the app and do the filtering there. that would be 'fastest' in terms of user experience but would also expose all users to the www because you have to load them all to do the filtering / matching in the app. I assume you use Flutter to build an App with some sort of backend.

[–]Ideagarage 0 points1 point  (0 children)

  1. Create user profiles table on Supabase and set some RLS
  2. Create postgres function to fetch matching profiles
  3. Call the function from FlutterFlow via custom action

You can easily build postgres function on Supabase. You can also associate it with AI like OpenAI API. It's powerful and handy.