diff options
author | Arne H Juul <arnej@yahooinc.com> | 2021-10-15 16:58:34 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2021-10-15 16:58:34 +0000 |
commit | 62474421791f47f87d593da56a4ba76ba570ba1f (patch) | |
tree | 050f4b8c9fa082572e87cc1a8d5dcd0d00578641 | |
parent | 0b1564f56523601b9f125a23c578801c46449fcb (diff) |
the new protobuf protocol should have good performance now
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java | 6 |
1 files changed, 1 insertions, 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 |