's Picture

Andrew Atkinson

Software Engineer, Author, Consultant

  • Home
  • About
  • Consulting
  • Book
  • Speaking
  • Writing
  • Ruby on Rails
  • PostgreSQL
  • Extra
  • Archive
  • Contact Me

October 4, 2022

PgHero 3 Released

We just upgraded to 3.0 of PgHero (Check the CHANGELOG.md). I learned about the availability of the new version from the Postgres.fm 🎧 podcast.

Ruby on Rails PostgreSQL Open Source

May 23, 2022

RailsConf 2022 Conference

This past week I had the privilege of presenting at and attending RailsConf 2022 Conference in Portland, OR. My presentation was titled Puny to Powerful PostgreSQL Rails Apps. This post will focus mainly on my presentation experience.

Ruby on Rails PostgreSQL Open Source Conferences Events

December 6, 2021

PGConf NYC 2021 Conference

Recently I had the opportunity to travel to NYC to present at PGConf NYC 2021.

PostgreSQL Open Source Conferences Events

October 15, 2021

Prioritizing Work that Matters

In the StaffEng book, there is a section called Work on What Matters.

Productivity

October 1, 2021

Find Duplicate Records Using ROW_NUMBER Window Function

Duplicate rows can happen when a database unique constraint is missing. Once found, finding and deleting duplicates in a fast way is necessary before the constraint can be added.

PostgreSQL Databases Tips

September 29, 2021

Bulk Inserts, RETURNING, and UNLOGGED Tables

By using UNLOGGED tables, we can insert rows at a higher rate when compared with a logged table (the default). But there’s a trade-off.

PostgreSQL Databases Tips

September 28, 2021

Using pg_repack to Rebuild Indexes

Over time our indexes became bloated, meaning invisible rows were still present in the index. This is inefficient and can be addressed by rebuilding the index.

PostgreSQL Rails Databases Tips

August 30, 2021

Manually Fixing a Rails Migration

This tip is a recipe for how to recover from a Rails migration that failed to apply in production. This process could work for any SQL migration. The example below is for an index added to a table.

PostgreSQL Rails Databases Tips

August 10, 2021

PostgreSQL pgbench Workload Simulation

We operate a high scale API application that relies on a single primary PostgreSQL instance. We have scaled up the DB instance vertically, acquiring more CPU, Memory, and disk IO over time.

PostgreSQL Databases Ruby on Rails

July 30, 2021

PostgreSQL Indexes: Prune and Tune

Indexes are data structures designed for fast retrieval. For databases with high row counts, Indexes that match queries well are critical to achieving good performance.

PostgreSQL Databases Programming

Newer Posts Page 6 of 15 Older Posts

Andrew Atkinson © 2006-2025.

Back to top