I am trying to understand why the performance of the response from my transport client execution in milliseconds is almost an entire order of magnitude slower than the response I get when executing the same query in the Sense plugin.
Lets say I run a very basic query in Sense like:
On a set of 30 million records I am getting response times like 250-500 ms.
When I run the same thing with a java block like this:
SearchResponse response = client.prepareSearch("my_index")
I get response times ranging from 2000-5000ms
Where client is a transport client with default settings and the queryBuilder is an empty BoolQueryBuilder (thus the same query as above). I have only added a timeout and custom cluster name to the client settings.
My cluster is just 2 master nodes.
Any ideas where this large performance gap could be occuring?