-
Notifications
You must be signed in to change notification settings - Fork 12
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
Make SQL executions async #3442
Conversation
return; | ||
} | ||
|
||
if (execution instanceof ManagedInternalForm<?> managedForm) { | ||
managedForm.getSubQueries().values().forEach(subQuery -> doExecute(namespace, subQuery)); | ||
managedForm.finish(ExecutionState.DONE); | ||
CompletableFuture.allOf(managedForm.getSubQueries().values().stream().map(this::executeAsync).toArray(CompletableFuture[]::new)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die CompletableFuture
's nutzen den ForkJoinPool.commonPool() per default. Passt das so oder sollen wir einen eigenen Executor übergeben bzw. das generell anders lösen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich würde erstmal beim default bleiben. Sollte der Probleme machen lässt sich das leicht ändern.
backend/src/main/java/com/bakdata/conquery/models/forms/managed/ManagedInternalForm.java
Outdated
Show resolved
Hide resolved
return; | ||
} | ||
|
||
if (execution instanceof ManagedInternalForm<?> managedForm) { | ||
managedForm.getSubQueries().values().forEach(subQuery -> doExecute(namespace, subQuery)); | ||
managedForm.finish(ExecutionState.DONE); | ||
CompletableFuture.allOf(managedForm.getSubQueries().values().stream().map(this::executeAsync).toArray(CompletableFuture[]::new)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich würde erstmal beim default bleiben. Sollte der Probleme machen lässt sich das leicht ändern.
No description provided.