PostgreSQL Performance Tuning: The Power of work_mem

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. postgresql

    Repositório de apoio para estudo aprofundado sobre PostgreSQL em português, com foco em conceitos avançados, melhores práticas e casos de uso práticos. (by iamseki)

    ➡️ github repository with the complete implementation

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. PostgreSQL

    Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch

    For your information, the tuplesort.c module flags when the Sort algorithm will use disk by setting the state to SORTEDONTAPE at this line. Disk interactions is handled by the logtape.c module.

  4. pev2

    Postgres Explain Visualizer 2

    If you're a visual person (like me), there are tools that can help you understand the EXPLAIN output, such as https://explain.dalibo.com/. Below is an example showing a node with the Sort step, including details like Sort Method: external merge and Sort Space Used: 2.2MB:

  5. TimescaleDB

    An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.

    Unfortunately, there’s no magic formula for setting work_mem. It depends on your system’s available memory, workload, and query patterns. The TimescaleDB Team has a tool to autotune and the topic is widely discussed. Here are some excellent resources to guide you:

  6. timescaledb-tune

    A tool for tuning TimescaleDB for better performance by adjusting settings to match your system's CPU and memory resources.

    Unfortunately, there’s no magic formula for setting work_mem. It depends on your system’s available memory, workload, and query patterns. The TimescaleDB Team has a tool to autotune and the topic is widely discussed. Here are some excellent resources to guide you:

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

  • Hooks: The secret feature powering the Postgres ecosystem

    4 projects | dev.to | 11 Mar 2022
  • TimescaleDB in 2024: Making Postgres Faster

    4 projects | dev.to | 15 Jan 2025
  • The Best Time-Series Databases Compared

    1 project | dev.to | 7 Jan 2025
  • Generative AI: A Personal Deep Dive – My Notes and Insights Part-2

    7 projects | dev.to | 21 Dec 2024
  • 13 Tips to Improve PostgreSQL Insert Performance

    5 projects | dev.to | 20 Dec 2024