We are using default transport client (i.e transport client 7.16.3) for communication with Elasticsearch. Previously on Elasticsearch 7.1.1 it takes around 3 sec to insert 5000 records but after upgrading it to Elasticsearch 7.16.3 it takes around 9 sec to insert 5000 records.
Elasticsearch 7.1 is EOL and no longer supported. Please upgrade ASAP.
(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns )