Skip to content

Remove transaction metadata from bulk imports#118

Merged
josephschorr merged 1 commit intoauthzed:mainfrom
josephschorr:bulk-change
Oct 1, 2024
Merged

Remove transaction metadata from bulk imports#118
josephschorr merged 1 commit intoauthzed:mainfrom
josephschorr:bulk-change

Conversation

@josephschorr
Copy link
Copy Markdown
Member

The entire bulk import is a single transaction, and there is no message in which we can provide the metadata, so disallow it

The entire bulk import is a single transaction, and there is no message in which we can provide the metadata, so disallow it
Copy link
Copy Markdown
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conversation was that ImportBulk and BulkImport both use streaming for network reasons, but the endpoint uses a single DB transaction per request to ensure that when you receive an error, you know what was and wasn't applied, which wouldn't be so easy if it were client streaming. We may revisit this, but in the meantime we'll use a header to get similar behavior out of the current implementation of the bulk endpoints.

@josephschorr josephschorr merged commit 8a6892e into authzed:main Oct 1, 2024
@josephschorr josephschorr deleted the bulk-change branch October 1, 2024 21:08
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants