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

use numbers_mt instead numbers #2

Closed
den-crane opened this issue Jan 1, 2022 · 2 comments
Closed

use numbers_mt instead numbers #2

den-crane opened this issue Jan 1, 2022 · 2 comments

Comments

@den-crane
Copy link

mt - multi thread

select * from system.numbers limit 1000000000 format Null;
0 rows in set. Elapsed: 0.475 sec. Processed 1.00 billion rows, 8.00 GB (2.10 billion rows/s., 16.83 GB/s.)

select * from system.numbers_mt limit 1000000000 format Null;
0 rows in set. Elapsed: 0.305 sec. Processed 1.00 billion rows, 8.00 GB (3.28 billion rows/s., 26.21 GB/s.)
@ernado ernado closed this as completed in 319ec06 Jan 3, 2022
@ernado
Copy link
Contributor

ernado commented Jan 3, 2022

Thank you!

@ernado
Copy link
Contributor

ernado commented Jan 3, 2022

I've also used following command to get results for clickhouse-client:

$ clickhouse-client --query "SELECT number FROM system.numbers_mt LIMIT 500000000" --format Null --time
0.529

Seems like using FORMAT Null in query results in no data sent to client.

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

2 participants