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

Make SQL executions async #3442

Merged
merged 3 commits into from
May 17, 2024
Merged

Conversation

jnsrnhld
Copy link
Collaborator

No description provided.

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))
Copy link
Collaborator Author

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?

Copy link
Collaborator

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.

@jnsrnhld jnsrnhld requested a review from thoniTUB May 16, 2024 11:46
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))
Copy link
Collaborator

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.

@jnsrnhld jnsrnhld enabled auto-merge (squash) May 17, 2024 10:30
@jnsrnhld jnsrnhld merged commit 3d4b59d into develop May 17, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the sql/feature/make-executions-async branch May 17, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants