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().
bundle.stage_row_field
callsmeta.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 makingbundle.commit()
run very slow. Optimize this to instead issue only one query perrow_id
inbundle.stage_row
. Probably usingrow_to_json()
.