Adding json field in output_fields is slowing search search by 20%. #40834
-
On a Collection I was searching with and without a scalar json field 'data' in output_fields. Queries were Any idea why this is happening? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It is expected that output_fileds will increase the latency of search/query. |
Beta Was this translation helpful? Give feedback.
-
when you output field this could introduce extra cpus, or disk ios since reverse data from columar storage is expected to be slow 。 did you have a profiling result or any performance numbers? I think 20% makes sense for me but right now it's hard for me to recommend how you can improve |
Beta Was this translation helpful? Give feedback.
It is expected that output_fileds will increase the latency of search/query.
With output_fields=['data'], the query node needs to read the data from memory or mmap file. With more data returned, the network latency also increases.