Skip to content

feat: deduplicate parameters in postgres#5400

Open
sakulstra wants to merge 1 commit intodrizzle-team:betafrom
sakulstra:feat/dedupe-params
Open

feat: deduplicate parameters in postgres#5400
sakulstra wants to merge 1 commit intodrizzle-team:betafrom
sakulstra:feat/dedupe-params

Conversation

@sakulstra
Copy link

@sakulstra sakulstra commented Feb 24, 2026

Postgres has max params of 65534, which can be quite annoying on batch inserts, but postgres also allows reusing parameters. So an insert inserting 10 rows, with 5 equal columns could use 5 params instead of 50 params.

As I think most other dialects enforce ordered params, i added a map for deduplication exclusively on the postgres dialect.

targeted beta as we're using beta, let me know if that was wrong

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.

1 participant