Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Take the (parent) account lock when processing children invoices events * Improve logging around parent invoice generation * Improve performance by looking-up parent invoices in bulk for a given set of child invoices Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
- Loading branch information
Showing
10 changed files
with
162 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
43d6370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Looks good overall, i am not sure this will be enough though. I guess this depends on your findings when running load tests.
43d6370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, for the following scenario:
Numbers after 18 months:
43d6370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That starts to look good!
43d6370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Let's chat offline.
Still going through this. One interesting note is that each month adds about 3s-4s in the generation time (i.e. we start at 50s or 25 invoices/s then 53s or 23 invoices/s, etc.), so it sounds like refetching all invoice items has a linear impact.