Skip to content

finaloop/snowflake-vs-postgres-poc

Repository files navigation

Snowpark vs Postgres POC

This repository contains benchmarks for comparing performance between Snowflake and PostgreSQL for various use cases.

Benchmarks

1. Load Testing

Measures and compares the data insertion performance between:

  • Snowflake Hybrid Tables
  • PostgreSQL

To run:

uv run run_benchmark.py

2. Join Benchmark

Measures the performance of joins between Snowflake's standard tables and hybrid tables in a data pipeline watermark scenario.

To run:

uv run run_join_benchmark.py

See the detailed results for more information about the join benchmark.

Requirements

  • Python 3.11+
  • UV package manager
  • Snowflake account configured with hybrid_table_poc connection
  • PostgreSQL database (optional, for load testing)

Installation

# Install all dependencies using uv
uv sync

# Install additional packages as needed
uv add snowflake-connector-python

Snowflake Configuration

Create a ~/.snowflake/connections.toml file with your Snowflake connection details:

[hybrid_table_poc]
account = "your-snowflake-account"
user = "your-username"
password = "your-password"  # Optional if using SSO
authenticator = "externalbrowser"  # Use for SSO authentication
warehouse = "your-warehouse" 
role = "your-role"
database = "FINALOOP"
schema = "PUBLIC"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages