Hydra is a high-performance Postgres database with serverless online analytical processing (OLAP). It is designed for low-latency applications built on time series and event data.
The benchmark itself requires psql to execute. You will need to install psql, e.g.:
# Debian, Ubuntu, etc
apt-get install postgresql-client
# MacOS
brew install postgresql
Note that either option below will introduce additional latency depending on the location from which the benchmark is run.
In this configuration, you will run a Postgres instance locally and it will connect to Hydra's serverless OLAP service. This will use the Hydra CLI which will manage a Docker container for you.
-
Install Python, and if desired, your preferred Python management tools, like pipx, uv, etc.
-
Install Hydra CLI using
pip install hydra-cli(or viapipx,uv, etc) -
Install Docker.
-
Sign up for Hydra at https://start.hydra.so/get-started and copy the token to your clipboard
-
Run
hydra setupand paste in your token -
Run
hydra startto start the local instance -
Run
hydra configto obtain the connection string and set itDATABASE_URLin your local environment, or pass it in when you run the benchmark. -
Run the benchmark.
DATABASE_URL="..." ./benchmark.sh -
Run
hydra stopto stop the local instance
In this configuration, you will connect to a Postgres instance already running in the cloud which is already configured to connect to Hydra's serverless OLAP service.
-
Sign up for Hydra at https://start.hydra.so
-
Request access and complete onboarding
-
Create a project
-
Obtain the connection string and set it as
DATABASE_URLin your local environment, or pass it in when you run the benchmark. -
Run the benchmark.
DATABASE_URL="..." ./benchmark.sh