SupabaseS
Supabase•4y ago
ceno

General question about speed and optimization from a new user

Hey! General question for anyone who can answer, I built my mobile app using supabase as the backend but using rest API and cURLs.

example:
/Product?select=*,+Store(id,storeIcon,storeSlug),+Likes(id),+ProductVariant(id,option_1,option_2,option_3,title,price,+ProductImage(id,url)),ProductImage(id,url))&Likes.supabase_user_id=eq.20c06cd5-6f48-4107-bb0d-b05e4f46940&order=created_at.desc&limit=50


Recently I realized it takes a bit of time to sometimes load certain screens of data (product feed list) even though it is only returning the first 50 items + the records may take 15-20 secs to fetch and retrieve (seeing log explorer) even though it is slower as the DB gets bigger. I have upgraded to the Small Add on hoping this would help but its not that big of a difference.

Is it because I am using cURL strings to pull data and I should upgrade to the javascript instead of bash? Any insights would be helpful - new to coding and backends 🙂
Was this page helpful?