46 articles since 2015

Recently published.

Older posts

10 posts · sorted newest

How to Design Your PostgreSQL Database: Two Schema Examples

↗ External

How 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…

PostgreSQLDatabasesTimescaleDB
Jan 2, 2024
1 min read

Creating a Fast Time-Series Graph With Postgres Materialized Views

↗ External

Fast time-series graphs in PostgreSQL, written with Timescale. Using materialized views and continuous aggregates for real-time analytics.

PostgreSQLDatabasesTimescaleDB
Nov 27, 2023
1 min read

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.

PostgreSQLSQLData Generation
Nov 9, 2023
5 min read

Wrangling Table Bloat in Large PostgreSQL Tables

↗ External

Tackling table bloat on large PostgreSQL tables, written with Timescale. Spotting bloat, tuning VACUUM and AutoVacuum, and partitioning with chunks.

PostgreSQLDatabasesTimescaleDB
Nov 3, 2023
1 min read

How to Reduce Your PostgreSQL Database Size

↗ External

Shrinking a PostgreSQL database, written with Timescale. Pages and tuples, how bloat accumulates, routine vacuums, compression, and retention policies.

PostgreSQLDatabasesTimescaleDB
Oct 7, 2023
1 min read

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.

Data StructuresGraphs
Jul 19, 2023
4 min read

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.

LLMsChatGPTBing
Jun 7, 2023
11 min read

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.

PythonWorkflowProductivity
May 8, 2023
4 min read

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.

PostgreSQLDatabasesData Structures
Mar 28, 2023
6 min read

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.

GitWorkflowProductivity
Mar 10, 2023
3 min read