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

Parallelize merge processes #18

Open
wants to merge 44 commits into
base: master
Choose a base branch
from

Conversation

ChamseddineBhd
Copy link
Collaborator

Signed-off-by: chamseddine [email protected]

@ChamseddineBhd ChamseddineBhd changed the title parallelize merge processes [WIP] parallelize merge processes Sep 23, 2020
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
@ChamseddineBhd ChamseddineBhd changed the title parallelize merge processes parallelize merge processes [WIP] Oct 2, 2020
Signed-off-by: chamseddine <[email protected]>
@ChamseddineBhd ChamseddineBhd changed the title parallelize merge processes [WIP] parallelize merge processes Oct 5, 2020
@ChamseddineBhd ChamseddineBhd changed the title parallelize merge processes Parallelize merge processes Oct 5, 2020
Signed-off-by: chamseddine <[email protected]>
pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
// write each IGM status
var l = Streams.zip(processConfigs.stream(), importedCases.stream(), (processConfig, processConfigNetworkUuid) ->
processConfigNetworkUuid.flatMap(uuid -> merge(processConfig, dateTime, date, tso, valid, uuid))).collect(Collectors.toList());
return Flux.fromIterable(l).flatMap(Function.identity()).collectList();
Copy link
Contributor

Choose a reason for hiding this comment

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

use Flux.merge instead of fromIterable(l).flatMap(Function.identity())

Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
@ChamseddineBhd ChamseddineBhd force-pushed the parallelize-merge-processes branch from 9101846 to cea7bef Compare December 10, 2020 16:22
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
pom.xml Outdated Show resolved Hide resolved
Signed-off-by: chamseddine <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

83.6% 83.6% Coverage
0.0% 0.0% Duplication

UUID processConfigNetworkUuid = caseFetcherService.importCase(caseUuid);
merge(processConfig, dateTime, date, tso, valid, processConfigNetworkUuid);
}
List<Mono<UUID>> importedCases = processConfigs.stream().map(ignored -> caseFetcherService.importCase(caseUuid)).collect(Collectors.toList());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the first one will be imported twice no ? @ChamseddineBhd

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.

4 participants