Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize version/zarr asset path ingestion #1343

Merged
merged 3 commits into from
Nov 2, 2022

Conversation

jjnesbitt
Copy link
Member

This unblocks asset path ingestion in staging/prod. Previously, transactions were being used in such an inefficient way that ingestion would essentially halt.

@jjnesbitt jjnesbitt force-pushed the asset-paths-ingest-performance branch 2 times, most recently from 260c50f to 70c3117 Compare October 24, 2022 19:47
@jjnesbitt jjnesbitt force-pushed the asset-paths-ingest-performance branch from 70c3117 to c9bb73c Compare October 26, 2022 15:20
@danlamanna
Copy link
Contributor

I'd like to take a look at this more closely this afternoon. If it's urgent feel free to merge it now and I can revisit it later.

Copy link
Contributor

@danlamanna danlamanna left a comment

Choose a reason for hiding this comment

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

I think managing transaction control by passing a boolean value around is a bit surprising. It's also wrapping the entire function body in a transaction, rather than isolating some specific portion of the logic, so it doesn't add much value to a caller. I think we should either drop the flag altogether, or determine which behavior ought to be conditional (bulk updating of AssetPaths or something like that).

@jjnesbitt jjnesbitt force-pushed the asset-paths-ingest-performance branch from 1e01d0f to 615865c Compare November 2, 2022 16:16
@jjnesbitt jjnesbitt merged commit daa1fa2 into master Nov 2, 2022
@jjnesbitt jjnesbitt deleted the asset-paths-ingest-performance branch November 2, 2022 16:41
@dandibot
Copy link
Member

dandibot commented Nov 7, 2022

🚀 PR was released in v0.3.0 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants