opensearch-net
opensearch-net copied to clipboard
[BUG] OpenSearch client response is very slow
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:
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.