If you are a developer, you may want to start from sources, read Get Started for Developers.
-
ensure you have the binary of ClickHouse client
- Download from the ClickHouse release page, stable release is recommended.
- or download here, a repacked ClickHouse client for your quick start.
-
get the binary of TensorBase server
Download from the TensorBase release page
-
config a base.conf for server booting
Here is an example of base.conf
-
start the TensorBase server like this:
./server -c $path_to_base_conf$
-
connect to the TensorBase server with clickhouse-client like this:
```clickhouse-client --port 9528``` or ```clickhouse-client --port 9528 -n```
NOTE:
--port
– Here 9528 is the default port of TensorBase.--multiquery
,-n
– If specified, allow processing multiple queries separated by semicolons. (So, it may be slightly quicker than multiple statements.) -
execute query like this:
```sql create table employees (id UInt64, salary UInt64) ENGINE = BaseStorage; insert into employees values (0, 1000), (1, 1500); select count(id) from employees; select avg(salary) from employees; ```
-
more supported statements could be seen here
TensorBase supports high concurrent ingestions from clickhouse-client and native protocol drivers ( Rust client driver here). Welcome to practice!