Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • MVP
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

PostgreSQL Articles

Written by thoughtbot, your expert partner for design and development.

    • All Topics
    • Design
    • Development
    • Product
    • More topics
  1. This week in #dev (Aug 23, 2024)

    Using constraints in Postgres and querying LLMs in the terminal.

    thoughtbot
    September 2, 2024
    • This Week In Dev
    • TIL
    • PostgreSQL
    • Large Language Models
  2. Monitoring PostgreSQL on AWS RDS for slow queries

    Some helpful tips to fixing slow database queries before they become a problem.

    Olamide Olaoye
    February 29, 2024
    • AWS
    • PostgreSQL
    • Databases
    • Debugging
    • DevOps
  3. Handling external API errors: A transactional approach

    Clarifying a few possible ways to implement transactional workflows when working with external APIs.

    Thiago Araújo Silva
    January 23, 2024
    • Error Handling
    • API
    • Distributed Systems
    • Fault Tolerance
    • PostgreSQL
  4. Testing SQL Performance in PostgreSQL

    Measure query speed with Postgres’ EXPLAIN ANALYZE.

    Elisa Verna
    December 15, 2023
    • SQL
    • PostgreSQL
    • Performance
  5. Joining Postgres tables using arrays of IDs

    Some tips on how to do many-to-many SQL queries without a normal join table.

    Dave Iverson
    December 5, 2023
    • Databases
    • PostgreSQL
    • SQL
    • Prisma
    • Airtable
  6. Are your polymorphic relationships correctly enforced?

    Learn how to strike a balance between flexibility and data integrity with a partial index and validations.

    Steve Polito
    December 1, 2023
    • Web
    • Rails
    • PostgreSQL
    • Active Record
  7. 3 ways to model an associated collection in Rails

    A look at the Postgres array type and good old join tables, each with their advantages and disadvantages.

    Dimiter Petrov
    November 23, 2023
    • Rails
    • Databases
    • SQL
    • PostgreSQL
  8. Database View Backed Scopes In Rails

    How do you manage queries when your Rails application isn’t the only thing reading your database?

    Steve Polito
    November 20, 2023
    • Rails
    • Web
    • PostgreSQL
  9. This Week in #dev (Jun 16, 2023)

    Highlights of what happened in our #dev channel on Slack this week.

    thoughtbot
    June 23, 2023
    • This Week In Dev
    • TIL
    • PostgreSQL
    • Databases
    • Rails
  10. Are you absolutely sure your `has_one` association really has one association?

    Learn about an unexpected limitation with this API and how to combat it universally.

    Steve Polito
    June 5, 2023
    • Rails
    • PostgreSQL
    • Active Record
  11. Sign up to receive a weekly recap from thoughtbot

    Looking for even more ways to stay connected?
    RSS feed icon Check out our feeds
1 2 3 4 5 6 Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy