This ClickBench configuration benchmarks [pg_clickhouse] running inside PostgreSQL and pushing queries down to a ClickHouse database. Files:
benchmark.sh: Runs the benchmarkclickhouse.sh: Installs ClickHouse and loads it with data; based on the ClickHouse benchmark scriptcreate-postgres.sql: Loads pg_clickhouse into Postgres and creates the foreign tablepostgres.sh: Installs, configures, and starts PostgreSQL; based on the PostgreSQL benchmark scriptqueries.sql: The benchmark queries, identical to the PostgreSQL queriesREADME.md: This filerun.sh: Runs the benchmark; identical too the PostgreSQL run scripttemplate.json: Describes this benchmark configuration
Set $TOTAL_PARTITIONS to the number of partitions to load into ClickHouse.
Defaults to 100.
Set $EXPLAIN to a true value to run each query with
EXPLAIN (ANALYZE VERBOSE).