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

Con 3755 import payments pefrormance #2213

Merged
merged 39 commits into from
Nov 1, 2021

Conversation

hkf-tech
Copy link
Contributor

@hkf-tech hkf-tech commented Oct 5, 2021

No description provided.

cofaulco and others added 30 commits January 21, 2021 11:34
A spike to see if the performance can be increase of getting the monthly payments.
# Conflicts:
#	src/SFA.DAS.EmployerFinance/Commands/RefreshAccountTransfers/RefreshAccountTransfersCommandHandler.cs

var newNonFullyFundedPayments = newPayments.Where(p => p.FundingSource != FundingSource.FullyFundedSfa);

_logger.Info($"CreatePayments for appIds: [{string.Join("'", newNonFullyFundedPayments.Select(x => x.ApprenticeshipId))}] AccountId = '{message.AccountId}' and PeriodEnd = '{message.PeriodEnd}' CorrelationId: {message.CorrelationId}");
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs removing

Comment on lines 79 to 81
var failingPayment = payments.Where(p => p.ApprenticeshipId == 743445).ToList();

_logger.Info($"Got payment for appId: {failingPayment.FirstOrDefault()?.ApprenticeshipId}, paymentIds: [{string.Join("'", failingPayment.Select(x => x.Id))}] and PeriodEnd = '{message.PeriodEnd}' CorrelationId: {message.CorrelationId}");
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs removing

{
var resultProviders = new Dictionary<long, Models.ApprenticeshipProvider.Provider>();

foreach (var ukprn in ukprnList)
Copy link
Contributor

Choose a reason for hiding this comment

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

is it worth using the ParallelForEachAsync here too?

Copy link
Contributor

@cofaulco cofaulco left a comment

Choose a reason for hiding this comment

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

a few comments

@narendranogothu narendranogothu merged commit 55bf837 into master Nov 1, 2021
@narendranogothu narendranogothu deleted the CON-3755-ImportPaymentsPefrormance branch November 1, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants