Recently published.
Older posts
10 posts · sorted newestHow to Design Your PostgreSQL Database: Two Schema Examples
↗ ExternalHow we design and lay out our tables is one of the most important decisions in developing effective and efficient PostgreSQL databases. A database schema is the…
Creating a Fast Time-Series Graph With Postgres Materialized Views
↗ ExternalFast time-series graphs in PostgreSQL, written with Timescale. Using materialized views and continuous aggregates for real-time analytics.
Easily Generate Mock Data with PostgreSQL
Using PostgreSQL's generate_series function to spin up mock data: integer sequences, date ranges, and time-series data for testing and demos.
Wrangling Table Bloat in Large PostgreSQL Tables
↗ ExternalTackling table bloat on large PostgreSQL tables, written with Timescale. Spotting bloat, tuning VACUUM and AutoVacuum, and partitioning with chunks.
How to Reduce Your PostgreSQL Database Size
↗ ExternalShrinking a PostgreSQL database, written with Timescale. Pages and tuples, how bloat accumulates, routine vacuums, compression, and retention policies.
Unraveling Graph Structures: Exploring Adjacency Matrices
How adjacency lists and adjacency matrices represent graphs, with tradeoffs and SQL examples for storing a DAG inside a relational database.
Improve Your Prompts for LLMs: Simple and Effective Techniques
Prompt-engineering techniques for LLMs like ChatGPT, Claude, and Bard: persona priming, structured output, few-shot examples.
Faster and Easier Python Debugging with breakpoint() and PDB
How to debug Python faster with the built-in breakpoint() and PDB: setting breakpoints, stepping through code, and inspecting variables live.
Postgres: The Graph Database You Didn't Know You Had
You don't need Neo4j for graph data. Walking through nodes, edges, and recursive traversals in plain Postgres, with working SQL.
Git Worktree: Enhance your Git Workflow
How git worktree lets you check out multiple branches in parallel directories, so hotfixes and feature work never clobber each other again.