Skip to content

perf: use bare CREATE TEMP TABLE instead of LIKE#135

Merged
kamsz merged 1 commit intomainfrom
kamil/perf-bare-staging-tables
Mar 20, 2026
Merged

perf: use bare CREATE TEMP TABLE instead of LIKE#135
kamsz merged 1 commit intomainfrom
kamil/perf-bare-staging-tables

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Mar 20, 2026

Replace LIKE ... INCLUDING DEFAULTS with explicit column definitions for staging tables. Avoids PG catalog introspection on every batch and ensures staging tables have zero indexes or constraints.

Prompted by: kamil

Replace LIKE ... INCLUDING DEFAULTS with explicit column definitions
for staging tables. Avoids PG catalog introspection on every batch
and ensures staging tables have zero indexes or constraints.

Co-authored-by: Kamil Szczygieł <2961450+kamsz@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d0cff-53d2-7073-a007-aba5d5f189de
@kamsz kamsz merged commit d8a28b8 into main Mar 20, 2026
1 check passed
o-az pushed a commit that referenced this pull request Apr 27, 2026
Replace LIKE ... INCLUDING DEFAULTS with explicit column definitions
for staging tables. Avoids PG catalog introspection on every batch
and ensures staging tables have zero indexes or constraints.


Amp-Thread-ID: https://ampcode.com/threads/T-019d0cff-53d2-7073-a007-aba5d5f189de

Co-authored-by: Kamil Szczygieł <2961450+kamsz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants