opensearch-net icon indicating copy to clipboard operation
opensearch-net copied to clipboard

[BUG] ​ OpenSearch client response is very slow

Open wbeckler opened this issue 1 year ago • 1 comments

The following issue was reported in the forum:

OpenSearch Client SearchAsync method is returning the results to the Class Model (Models.MOTPOpenSearchItem) in 17 second while the AWS opensearch URL hits through postman giving the results in 2 sec (further taking 5-6 Sec to formatting the response). What I am doing wrong with the client libraries.

Total Documents - 6053 Shards - 5

Versions:

OpenSearch.Client - 1.3.0 OpenSearch.Net 1 - 1.3.0

Screenshot: image

wbeckler avatar Jul 10 '23 20:07 wbeckler

The response looks big, so it takes forever to deserialize :( I suggest we add benchmarks and start improving them by first moving deserialization into something lazy.

dblock avatar Jul 12 '23 00:07 dblock