How to increase page load speed? (Replit + Supabase)


I’m on the Pro plan on Replit, which gives me an Always On and a Boosted repl.

I have launched a flask application, which has all my code in Replit, and a remote Postgres database on Supabase, which I connect to using the configs in the Secrets tab.

My problem is that the web application is really slow.

Can I get some advice on:

  1. How do go about diagnosing the real issue (is it the code, or the database, or latency, or Replit servers, or the domain name provider, etc?)

  2. Do I need to EXPORT my database from Supabase to Replit? Will that help, and how to even do that?!