Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sql] select queries are still blocked and not executed concurrently (sqlite) #2254

Open
rap2hpoutre opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working plugin: sql

Comments

@rap2hpoutre
Copy link

Even with this fix #1972 implemented to answer this issue #1935, after updating to v2.2.0 this code still executes sequentially and not concurrently.

console.time("long");
console.time("short");
// This takes 3 seconds
db.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");
});

[Debug] long: 3395.504ms (Sandbox.tsx, line 38)
[Debug] short: 3395.760ms (Sandbox.tsx, line 41)

Is there something I missed?

cc @cijiugechu

@FabianLars FabianLars added bug Something isn't working plugin: sql labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: sql
Projects
None yet
Development

No branches or pull requests

2 participants