Five Easy to Miss PostgreSQL Query Performance Bottlenecks

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • postgrest

    REST API for any Postgres database

  • For OLAP-style use-cases, I wouldn't recommend SQLite, but rather something equally (apparently) unfashionable: stored procedures.

    In both cases, the goal is to save the time spent round-tripping queries and responses to the DB. But with OLAP, you more-than-likely have a large dataset that needs its own dedicated beefy DB to process. So rather than moving the data to the code (with e.g. SQLite), move the code to the data (by moving as much of your business layer as possible into the DB. Or possibly all of it, ala https://postgrest.org/.)

  • factory_boy

    A test fixtures replacement for Python

  • When releasing a new application (or feature) I've always loaded each table in my development environments database with a few million rows. Tools like Python's Factory Boy [1] or Ruby's Factory Bot [2] make this trivial.

    After the data is loaded up, start navigating through the application and it will become evident where improvements need to be made. Tools like Django Debug Toolbar [3] help expose where the bad ORM calls are or also by tailing Postgres log files.

    [1] https://github.com/FactoryBoy/factory_boy

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • factory_bot

    A library for setting up Ruby objects as test data.

  • [2] https://github.com/thoughtbot/factory_bot

  • django-debug-toolbar

    A configurable set of panels that display various debug information about the current request/response.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Efate Test Generator Series: Extending the library

    2 projects | dev.to | 5 Sep 2022
  • How to Scrape Dynamic Content with Selenium and Beautiful Soup

    1 project | dev.to | 4 Jun 2024
  • The Puppeteer Language Experiment

    3 projects | dev.to | 21 May 2024
  • Hacking out an AI spider with Node

    1 project | dev.to | 11 May 2024
  • Sometimes things simply don't work

    3 projects | dev.to | 23 Apr 2024