Skip to content

Conversation

Henr1k80
Copy link
Contributor

I noticed this OOM exception and saw string concat in the call stack.
No need to do concat when we are putting the result into a JsonWriter anyway.

I can see that you have improved the serialization in other branches, but I guess that is not coming in the near future.

Inner exception System.OutOfMemoryException handled at Elasticsearch.Net.Transport1+<RequestAsync>d__151.MoveNext:
at System.String.Concat (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Nest.BulkRequestJsonConverter.WriteJson (Nest, Version=6.0.0.0, Culture=neutral, PublicKeyToken=96c599bbe3e70f5d)

@Mpdreamz
Copy link
Member

Thanks! Yes we are working on making major improvements but this a super quick win.

The serialization improvements should land soon but for now target 7.x only.

@Mpdreamz Mpdreamz closed this Feb 28, 2019
@Mpdreamz Mpdreamz reopened this Feb 28, 2019
@Mpdreamz Mpdreamz merged commit 6309891 into elastic:6.x Feb 28, 2019
@Henr1k80
Copy link
Contributor Author

Henr1k80 commented Mar 6, 2019

This will not make into 6.6, right?
Do you have a release plan or is it just on demand when there is enough meaningful changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants