
Process database rows
Dataset: an orders table
orders tableimport os
from dataclasses import dataclass
import psycopg2
from burla import remote_parallel_map
DATABASE_URL = os.environ["DATABASE_URL"]
ROWS_PER_RANGE = 25_000
MAX_DB_CONNECTIONS = 20Step 1: Build ID ranges
Step 2: Process one range
Step 3: Smoke test one range
Step 4: Run the full range list
Step 5: Reduce the results
What's the point?
Last updated