officialdavidtaylor / personal-finance-tracker

0 stars 0 forks source link

Proposal: don't require matching every record to a merchant for bulk uploading #3

Open officialdavidtaylor opened 3 months ago

officialdavidtaylor commented 3 months ago

Implementation details:

Some benefits include:

Some question marks:

officialdavidtaylor commented 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.