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

Disable transaction in rebuild step #56

Conversation

sascha-karnatz
Copy link
Contributor

The default rebuild behavior is to have a transaction, which is creating a huge amount of insert before commiting those. These function is only for the initial setup and it is not important to have it transactional.

The default rebuild behavior is to have a transaction, which is creating a huge amount of insert before commiting those. These function is only for the initial setup and it is not important to have it transactional.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

We should make this optional

@@ -19,7 +19,7 @@ def self.is_searchable?(ingredient_type)
# index all supported Alchemy models
def self.rebuild
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def self.rebuild
def self.rebuild(transactional: true)

@tvdeyen tvdeyen closed this Oct 8, 2024
@sascha-karnatz sascha-karnatz deleted the rebuild-without-transaction branch October 8, 2024 15:55
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