From 62474421791f47f87d593da56a4ba76ba570ba1f Mon Sep 17 00:00:00 2001 From: Arne H Juul Date: Fri, 15 Oct 2021 16:58:34 +0000 Subject: the new protobuf protocol should have good performance now --- .../main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java b/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java index 74bc9e8bfbb..ba68847e0ab 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java @@ -43,12 +43,8 @@ public class RpcInvokerFactory extends InvokerFactory { Query query = result.getQuery(); boolean summaryNeedsQuery = searcher.summaryNeedsQuery(query); - boolean useProtoBuf = query.properties().getBoolean(Dispatcher.dispatchProtobuf, true); - boolean useDispatchDotSummaries = query.properties().getBoolean(dispatchSummaries, false); - return ((useDispatchDotSummaries || !useProtoBuf) && ! summaryNeedsQuery) - ? new RpcFillInvoker(rpcResourcePool, searcher.getDocumentDatabase(query)) - : new RpcProtobufFillInvoker(rpcResourcePool, searcher.getDocumentDatabase(query), searcher.getServerId(), summaryNeedsQuery); + return new RpcProtobufFillInvoker(rpcResourcePool, searcher.getDocumentDatabase(query), searcher.getServerId(), summaryNeedsQuery); } // for testing -- cgit v1.2.3