elastic / elastic-transport-python

Transport classes and utilities shared among Python Elastic client libraries
https://elastic-transport-python.readthedocs.io
Apache License 2.0
20 stars 13 forks source link

Add optional orjson serializer support #152

Closed pquentin closed 5 months ago

pquentin commented 6 months ago

Based on https://gist.github.com/sethmlarson/5c37bd0cc1bbb5c40d8b90860e98de7f with tips from @karmi and @honzakral.

I'm not enabling it automatically for now due to stricter UTF-8 behavior and different handling of NaN. Will require a companion PR in elasticsearch-py.

pquentin commented 6 months ago

Thanks for the review! My current plan is to merge when the elasticsearch-py part is ready too.