Open officialdavidtaylor opened 3 months ago
This train of thought just lead me to a simplified method of de-duplicating transactions (for cases where someone adds individual records throughout the month, then adds the statement sheet at the end of the month).
I can add a field to the transaction table to track the upload method (single
vs bulk
) and for the bulk mutation I'll query for all of the singles for that particular account within the time span in question, then do an in-memory splice to allow an upsert operation.
Implementation details:
merchantDescription
field to the transaction table (nullable? see note inquestion marks
section)merchantId
to be null in the transaction tableSome benefits include:
merchantId
can be used to aggregate franchise location POS entry differencesSome question marks:
merchantId
to be assigned to the record.