Would it be possible to only include the used SQL columns in the UPDATE statement? could it be something like UPDATE t1 SET {...usedSqlColumns}=t2.val and avoid the CASE statement? We haven't noticed any issues in behavior, just curious if there was a reason for all columns to be involved in the SQL statement.
Hey @tjmoses, was just looking through the code and the
CASE
statements in theUPDATE
stuck out to me:https://github.com/tjmoses/postgraphile-plugin-batch-create-update-delete/blob/433049b4d4741f7db4143e5a65759f8d91cec501/src/PostGraphileManyUpdatePlugin.ts#L370
Would it be possible to only include the used SQL columns in the UPDATE statement? could it be something like
UPDATE t1 SET {...usedSqlColumns}=t2.val
and avoid theCASE
statement? We haven't noticed any issues in behavior, just curious if there was a reason for all columns to be involved in the SQL statement.