Skip to content

Commit 3139807

Browse files
committed
Adjust tag retrieval logging and reduce bulk size for tag operations #deploy-test-dolly-search-service
1 parent 3350cf7 commit 3139807

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/dolly-search-service/src/main/java/no/nav/testnav/dollysearchservice/consumer/PdlProxyConsumer.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public Flux<SearchResponse> search(SearchRequest request) {
5757
public Mono<Map<String, List<String>>> getTags(List<String> identer) {
5858

5959
return tokenExchange.exchange(serverProperties)
60-
.flatMap(token-> new TagsGetCommand(webClient, identer, token.getTokenValue()).call());
60+
.flatMap(token-> new TagsGetCommand(webClient, identer, token.getTokenValue()).call())
61+
.doOnNext(response -> log.info("Hentet tags for {} personer", response.size()));
6162
}
6263

6364
public Mono<TagsOpprettingResponse> setTags(List<String> identer) {

apps/dolly-search-service/src/main/java/no/nav/testnav/dollysearchservice/service/TagsService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@RequiredArgsConstructor
1919
public class TagsService {
2020

21-
private static final int BOLK_SIZE = 100;
21+
private static final int BOLK_SIZE = 10;
2222

2323
private final BestillingQueryService bestillingQueryService;
2424
private final PdlProxyConsumer pdlProxyConsumer;

0 commit comments

Comments
 (0)