SQL

Write an awesome doc for SQL. A very nice and practical one, extracted from SQL official documentation.

View on GitHub

Bulk Insert

[!NOTE]

I am not gonna speak about why we ain’t doing individual INSERT statements since there are ample reason to believe that it’ll be slow.

Batching

[!CAUTION]

PostgreSQL has its own limitations, i.e. that we cannot have more than 65535 parameterized values in a single SQL query :expressionless: (ref, search for “query parameters”).

unnest Function

copy

TK

pgloader

TK

UNLOGGED Tables

Ref