A command line application designed to provide a method to test the BigQuery Streaming API or BigQuery Storage Write API, allowing you to get a view of the potential throughput available via a given host.
USAGE:
bqwrite-test -p PROJECT_ID -d DATASET -t TABLENAME -w WORKERS
ARGS:
-b int
Batch Size, 1 to 50000 (default 1)
-d string
BigQuery Dataset (Required)
-i int
Number of Records, 1 to 100000000 (default 100)
-o Overwrite BigQuery Table
-p string
Google Cloud Project ID (Required)
-t string
BigQuery Table (default "bqwrite_test")
-v Output Verbose Detail
-w int
Number of Parallel Workers, 1 to 100 (default 5)
When you first execute the command line application it will verify if the target table exists, if not found then the table will be created.
If you wish to delete and recreate the existing table you can execute the command with the -o
overwrite flag.
Because BigQuery's Streaming API is designed for high insertion rates, modifications to the underlying table metadata exhibit are eventually consistent when interacting with the streaming system.
Because of this, when overwriting or creating the table initially a 10 minute sleep is performed.
bqwrite-test is released under the Apache License 2.0 unless explicitly mentioned in the file header.