First, start banyandb
. And create resources,
$ bydbctl group create -f ./scripts/group.yaml
$ bydbctl measure create -f ./scripts/measure.yaml
$ go run ./scripts/create_topn.go
After schema are setup,
$ ./scripts/load_data_5K_client.sh
which will load 5K measure per minute (24 hours in total) into the BanyanDB.
For a simple verification that the data has been written successfully, use the following script,
$ bydbctl measure query -f ./query/measure_query.yaml
Then run query job,
$ time go run ./query/query.go