Hierarchical Structures in PostgreSQL

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

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. comment-castles

    Lightweight internet forum

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Closure Tree

    Easily and efficiently make your ActiveRecord models support hierarchies

    I'm actually using materialized views and CTE with PhotoStructure (where hierarchies are arguably the cornerstone of the product).

    It's pretty funny that I landed on this implementation, given that I spent a couple years building https://github.com/ClosureTree/closure_tree (one of the most popular acts-as-hierarchy ActiveRecord gems), as it (unsurprisingly) uses closure trees.

    When CTE isn't available, closure trees are nice, but boy howdy, does that closure tree table get gigantic with deeper graphs.

    If CTE is available, closure trees don't even come close in performance and simplicity.

    (Hint: materialized paths should use a unique separator: ASCII 0x1F is applicable: https://en.wikipedia.org/wiki/C0_and_C1_control_codes#Field_...)

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

  • Find all objects of a chain of associations on the same table

    2 projects | /r/rails | 2 Mar 2021
  • Programming languages should have a tree traversal primitive

    7 projects | news.ycombinator.com | 29 Apr 2025
  • A newbie's look at N+1 queries

    1 project | dev.to | 27 Jun 2024
  • RDS Database Migration Series - Facing The Giant: How we migrated 11 TB database

    2 projects | dev.to | 13 May 2024
  • Payload and parameters validation in Rails

    1 project | dev.to | 9 Mar 2024

Did you know that Ruby is
the 12th most popular programming language
based on number of references?