mostlylucid.net - Scott Galloway's Developer Blog
author

Hi, I'm Scott Galloway — I'm a consulting web / internet / systems / full-cycle, full-stack developer (it's complicated šŸ¤“) specializing in bringing 'AI' to the masses, .NET Core, full-stack development, cloud, and search technologies. Former Microsoft ASP.NET Program Manager with 30+ years building web applications for Fortune 500 companies and startups. I share my work in progress (PERSONAL!) projects and how I build them. Available for contract, full-time, or consultancy work — get in touch. Code on GitHub | Feedback on Mastodon

Clear All
Page 15 of 160 (Total items: 799)
Data Hierarchies Part 1.5: PostgreSQL ltree with EF Core
PostgreSQL's ltree extension gives you materialised paths with database-native superpowers: GiST indexes, specialised operators like @> and <@, and powerful pattern matching. If you're committed to...

Saturday, 06 December 2025 09:50

//

15 minute read

Data Hierarchies Part 1.4: Nested Sets with EF Core
Nested sets encode the entire tree structure into just two integers per node - Left and Right boundaries from a depth-first walk. Finding all descendants becomes a simple range query, and ORDER BY...

Saturday, 06 December 2025 09:40

//

16 minute read

Data Hierarchies Part 1.3: Materialised Path with EF Core
Materialised paths store the complete ancestry as a delimited string - like /1/3/7/ - making ancestors instantly readable without any joins. Perfect for breadcrumb generation and human-readable...

Saturday, 06 December 2025 09:30

//

14 minute read

Data Hierarchies Part 1.2: Closure Table with EF Core
Closure tables precompute and store every ancestor-descendant relationship, trading storage space for blazing-fast reads. This is the approach this blog uses for its comment system - when reads vastly...

Saturday, 06 December 2025 09:20

//

16 minute read

Data Hierarchies Part 1.1: Adjacency List with EF Core
The adjacency list is the simplest and most intuitive approach to storing hierarchical data - each row just points to its parent. It's what most developers reach for first, and for shallow trees with...

Saturday, 06 December 2025 09:10

//

11 minute read

Page 15 of 160 (Total items: 799)
logo

© 2026 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.