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

bundle: optimize stage_row_field and offstage_field_changed #116

Open
erichanson opened this issue Feb 11, 2019 · 0 comments
Open

bundle: optimize stage_row_field and offstage_field_changed #116

erichanson opened this issue Feb 11, 2019 · 0 comments

Comments

@erichanson
Copy link
Member

erichanson commented Feb 11, 2019

bundle.stage_row_field calls meta.field_id_literal_value() once per field on each row on the stage. This requires a query to the table for every field, which is making bundle.commit() run very slow. Optimize this to instead issue only one query per row_id in bundle.stage_row. Probably using row_to_json().

@erichanson erichanson added this to the 0.2 release milestone Mar 7, 2019
@erichanson erichanson changed the title bundle: optimize stage_row_field bundle: optimize stage_row_field and offstage_field_changed Sep 16, 2020
@erichanson erichanson removed this from the 0.2 release milestone Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant