System.OutOfMemoryException on Bulk Insert

Hi

While bulk insert data into elastic search, I am getting System.OutOfMemoryException.
Each object is little large, if the number of properties in object is less then data getting inserted.
(C# coding)
Is there any solution to avoid this issue.

PostData postData = PostData.MultiJson(lstRows);
ElasticsearchResponse<string> indexResponse = objClient.Bulk<StringResponse>(postData);

Thanks
Aneesh

How many rows are you posting at a time?

10000 (5000 index rows + 5000 data rows) rows at a time

Try with less like 1000 or 500

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.