DigiNews

Tech Watch by Johan Denoyer

← Back to articles

How TABLESAMPLE picks rows

Quality: 9/10 Relevance: 9/10

Summary

This article explains PostgreSQL TABLESAMPLE, comparing SYSTEM and BERNOULLI sampling, and how sampling operates on pages rather than individual rows. It provides practical benchmarks, explores repeatable seeds, and discusses how sampling affects counts, aggregates, and joins, with guidance on when to use which method.

🚀 Service construit par Johan Denoyer