klequis / private-money-client

5 stars 2 forks source link

Delete rule must run all rules -> poor performance #40

Open klequis opened 3 years ago

klequis commented 3 years ago

Currently, when the user deletes a rule

  1. All tx with the rule id are found
  2. The rule id is removed from the txs
  3. The rule is deleted from the rules collection
  4. All rules are re-run

Problem Running all rules causes poor performance Solution The rules effected an be cleaned-up. For each rule found in step 1 above