---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=render&tag=sql"
---

# Posts

Filtered by topics: SQL, source: Render.

Posts 1–3 of 3, page 1 of 1, newest first.

## 2024-12-12

- [Fix a top cause of slow queries in PostgreSQL (no slow query log needed)](https://swe.quest/articles/fix-a-top-cause-of-slow-queries-in-postgresql-no-slow-query-log-needed-4d1a4c0df1aa9a0d.md): Render · 2024-12-12 · Medium · 7 min read · PostgreSQL, Performance engineering, SQL
  PostgreSQL automatically indexes primary keys and UNIQUE columns but not the referencing column of a foreign key, so lookups on that side and ON DELETE CASCADE / SET NULL triggers fall back to full table scans.

## 2024-06-13

- [How to take random samples from big PostgreSQL tables](https://swe.quest/articles/how-to-take-random-samples-from-big-postgresql-tables-9724e6f9679558c6.md): Render · 2024-06-13 · Medium · 10 min read · PostgreSQL, SQL, Performance engineering, Query engines
  Random sampling from billion-row PostgreSQL tables with ORDER BY random() scans every row and runs a top-N heapsort, taking over a minute.

## 2021-10-05

- [What's New in PostgreSQL 14?](https://swe.quest/articles/what-s-new-in-postgresql-14-d679a59b3961e203.md): Render · 2021-10-05 · Medium · 4 min read · PostgreSQL, SQL
  PostgreSQL 14 adds jsonb subscripting, which lets queries read, filter and update nested JSONB values with JavaScript-like bracket syntax instead of path operators such as #\>.

Same list as RSS: [https://swe.quest/feed.xml?source=render&tag=sql](https://swe.quest/feed.xml?source=render&tag=sql). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
