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

How to execute queries on the clickhouse cluster simultaneously #4

Open
ghuname opened this issue Nov 30, 2019 · 0 comments
Open

How to execute queries on the clickhouse cluster simultaneously #4

ghuname opened this issue Nov 30, 2019 · 0 comments

Comments

@ghuname
Copy link

ghuname commented Nov 30, 2019

Hi,

Let's say that I have 10 nodes clickhouse server.
Let's say that I have 50 queries that I would like to execute on each node's distributed table and get results (in pandas dataframe).

I have seen an example on https://docs.python.org/3/library/asyncio-queue.html (bottom of the page), but I don't know how to use aioch for the same purpose.

My situation is that I should have 50 queries (sleep_for), and 10 tasks.

As soon as one query is finished free server should take another query and execute it.

Has someone done something like that?

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant