When the REST API is used to upload thousands of records it would be more efficient to do this in bulk to avoid the overhead of thousands of HTTP request. Using elasticsearch REST API as model, something like a POST <prefix>/_bulk endpoint would probably be the best way instead of overloading the POST <prefix>/ endpoint.
When the REST API is used to upload thousands of records it would be more efficient to do this in bulk to avoid the overhead of thousands of HTTP request. Using elasticsearch REST API as model, something like a
POST <prefix>/_bulk
endpoint would probably be the best way instead of overloading thePOST <prefix>/
endpoint.