fdb-document-layer icon indicating copy to clipboard operation
fdb-document-layer copied to clipboard

ExtOperatorUpdate::update() is parsing query for each document

Open apkar opened this issue 5 years ago • 2 comments

This function gets executed part plan execution phase, but it tries to parse and figure out the query here in this function. This function gets executed for each and every document we scan, most of the work in this function could be pushed to the planning phase.

It's possible I am being naive and expecting this to be simpler than it is, but it is worth spending a bit of time on it later.

apkar avatar Apr 11 '19 05:04 apkar

I agree. The query parsing and validating part can be lifted into the constructor of ExtOperatorUpdate and ExtReplaceUpdate.

dongxinEric avatar Apr 11 '19 18:04 dongxinEric

@apkar Could you please assign this to me, we started working on it.

senthil-db-expert avatar Aug 30 '19 06:08 senthil-db-expert