Skip to content

Add TABLOCK hint to contract-enforced INSERT INTO (#640).#678

Merged
axellpadilla merged 1 commit into
dbt-msft:masterfrom
Benjamin-Knight:fix/#640-tablock-on-contract-inserts
May 21, 2026
Merged

Add TABLOCK hint to contract-enforced INSERT INTO (#640).#678
axellpadilla merged 1 commit into
dbt-msft:masterfrom
Benjamin-Knight:fix/#640-tablock-on-contract-inserts

Conversation

@Benjamin-Knight
Copy link
Copy Markdown
Collaborator

@Benjamin-Knight Benjamin-Knight commented May 20, 2026

Enables minimal logging on bulk insert into pre-created tables when the database is in SIMPLE or BULK_LOGGED recovery. Fixes #640

Enables minimal logging on bulk insert into pre-created tables when the
database is in SIMPLE or BULK_LOGGED recovery. Only the contract-enforced
branch of sqlserver__create_table_as is affected; the non-contract
SELECT * INTO path is unchanged. Adds a functional test asserting the
hint appears in compiled SQL and updates the two BaseConstraints*
expected_sql fixtures to match.
@Benjamin-Knight Benjamin-Knight added this to the v1.10.0 milestone May 21, 2026
@axellpadilla axellpadilla merged commit 57e8808 into dbt-msft:master May 21, 2026
53 checks passed
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.

DBT Contracts Performance

2 participants