Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds new method to check for existence of credit notes #426

Merged
merged 1 commit into from
May 22, 2023

Conversation

froque
Copy link
Member

@froque froque commented May 18, 2023

This new method performs better, without needing to fetch a lot of data from disk in Postgresql.

There is an open question for Portugal, where this method does not exist, if it should exist or if the method should not exist for all countries.

fixes #425

Copy link
Member

@thenmaster thenmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only implemented this new optimized solution for the credit receipt flow. Please add it as well to the credit note flow as it would also benefit from this change

(Side note: you actually mentioned credit notes in the title of your PR but only changed credit recepits :) )

@froque froque force-pushed the 425-checkcreditreceipt-is-io-intensive-with-no-need branch from b825975 to f9d4b2b Compare May 19, 2023 15:43
@froque
Copy link
Member Author

froque commented May 19, 2023

I forgot about the two different types of credit once again. that explains the missing for Portugal.

PR updated

@froque froque requested a review from thenmaster May 19, 2023 15:44
…eipts

This new method performs better, without needing to fetch a lot of data
from disk in Postgresql.
@froque froque force-pushed the 425-checkcreditreceipt-is-io-intensive-with-no-need branch from f9d4b2b to ffb4b75 Compare May 19, 2023 15:51
Copy link
Member

@thenmaster thenmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@froque froque merged commit 3a02960 into master May 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

checkCreditReceipt is IO intensive with no need
2 participants