dolt icon indicating copy to clipboard operation
dolt copied to clipboard

`merge.resolveDefaults` is extremely slow

Open nicktobey opened this issue 1 year ago • 0 comments

I don't have a profile, but it was causing a customer's 9 second operation to take hours because we were running it for every row in the diff.

We no longer run it for every row in the diff, but it's still slow because it works by calling parseCreateTable, which generates a CREATE TABLE string from the schema, and then parses it in yacc. This feels extremely unnecessary. We should be able to get the data from the schema directly.

nicktobey avatar Nov 23 '23 01:11 nicktobey