Hello everyone !
I’m running a query using SQL Database Connector and it’s taking 5 seconds to execute. When I run the query on Azure Data Studio, it takes 0,02 sec.
Why is there a degradation on Bubble’s side ? Is there a way to optimize time response, or is there things that I may have missed while creating the query and is causing this ?
My goal is to drop the response time to 2 or 3 secs at least. I know there’ll always be a delay because running a query while being directly connected to the Database is faster than connecting through Bubble.
Here’s more information :
Query :
The query itself contains two subqueries : each subquery will sum the values of 2 different columns and while having constraints on 8 other columns. The value output of each subquery will then be added. The 8 constraints are taken from bubble as parameters (they are the user’s input).
Database :
I built the database on Microsoft Azure. The database isn’t really large for now, it’s about 2000 rows x 20 columns. When the query is executed, the sum is made on one column while having constraints on 8 other columns.
Did someone encounter this previously and found a solution ? Or can someone with experience and knowledge help me on this matter ? I searched the forum but couldn’t find tangible solutions for this matter.
I’m currently on Starter’s Plan if that matters.