You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.time("long");console.time("short");// This takes 3 secondsdb.select("WITH RECURSIVE cte(x) AS (SELECT 1 UNION ALL SELECT x + 1 FROM cte LIMIT 10000000) SELECT count(x) FROM cte;").then(()=>{console.timeEnd("long");});db.select("SELECT 1;").then(()=>{console.timeEnd("short");});
I have to wait the end of the first query to finish its execution to get the second query result.
It's as if each query is waiting for the following one before running itself.
Here is the result:
long: 3580.368ms
short: 3580.434ms
As you can see both query took 3.5 seconds even if the second one is fast.
Could this be fixed?
The text was updated successfully, but these errors were encountered:
Using this short code:
I have to wait the end of the first query to finish its execution to get the second query result.
It's as if each query is waiting for the following one before running itself.
Here is the result:
As you can see both query took 3.5 seconds even if the second one is fast.
Could this be fixed?
The text was updated successfully, but these errors were encountered: