Since curl requests use the Java API, it is impossible to execute this
faster than Java API.

Can you post the Java code and curl request you use? Have you compared the
queries sent? What does the query look like? How does the result look like?

Without this information it is very hard to discuss any issue, it will be
just guessing.

Jörg


On Wed, Aug 20, 2014 at 8:02 PM, Elliott Bradshaw <[email protected]>
wrote:

> Hi Vineeth,
>
> The system is currently deployed on a Tomcat server and the client is
> created a single time on application start up.  The time I gave of 1-2
> seconds is for the query alone, as far as I know.
>
> Thanks,
>
> Elliott
>
>
> On Wednesday, August 20, 2014 12:46:34 PM UTC-4, vineeth mohan wrote:
>
>> Hello Eliott ,
>>
>> I suspect if this has something to do with client creation.
>> Can you see the time taken for the query alone and not the client
>> creation.
>>
>> Other possible reasons can be refresh flag ON.
>> Please check that also.
>>
>> Thanks
>>           Vineeth
>>
>>
>>
>> On Wed, Aug 20, 2014 at 10:11 PM, Elliott Bradshaw <[email protected]>
>> wrote:
>>
>>> Vineeth,
>>>
>>> Thanks, but according to the documentation, it looks like sniffing is
>>> only supported when using the TransportClient.  I'm using the standard
>>> Node/Client configuration.
>>>
>>>
>>> On Wednesday, August 20, 2014 12:24:45 PM UTC-4, vineeth mohan wrote:
>>>
>>>> Hello Elliot ,
>>>>
>>>> Is the sniffing enabled while creating the client.
>>>> This means that , it will determine which all machines are enabled and
>>>> does some load balancing.
>>>> Which means that it needs additional time while creating the client.
>>>>
>>>> Thanks
>>>>            Vineeth
>>>>
>>>>
>>>> On Wed, Aug 20, 2014 at 9:39 PM, Elliott Bradshaw <[email protected]>
>>>> wrote:
>>>>
>>>>> I'm joining an existing cluster as a node via the Java API.  I
>>>>> generate a relatively complicated multi-index "indices" query that 
>>>>> combines
>>>>> the results of two different queries on two modestly sized indexes (150M
>>>>> records combined).  Execution of actionGet() on this query takes
>>>>> approximately 1-2 seconds.  On the other hand, if I dump the same query to
>>>>> JSON via the XContent jsonBuilder() and execute it with curl, it takes 
>>>>> only
>>>>> 14 ms.  Results are identical in both cases.
>>>>>
>>>>> Has anyone else had similar problems like this?  Any thoughts on what
>>>>> might be the source of the problem?  My next thought was to try connecting
>>>>> to the cluster via a TransportClient.  Not sure if it will help or not...
>>>>>
>>>>> Thanks!
>>>>>
>>>>> - Elliott
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "elasticsearch" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>
>>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>>> msgid/elasticsearch/fa4fb57e-3beb-4e80-8672-1981bcb8c35c%40goo
>>>>> glegroups.com
>>>>> <https://groups.google.com/d/msgid/elasticsearch/fa4fb57e-3beb-4e80-8672-1981bcb8c35c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "elasticsearch" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/elasticsearch/bfae9628-0212-4b03-8f76-4fb85aab23e9%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/elasticsearch/bfae9628-0212-4b03-8f76-4fb85aab23e9%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/16c49c37-4c0c-4b37-85a5-2969aa6c5ee4%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/16c49c37-4c0c-4b37-85a5-2969aa6c5ee4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHuXWpN2RU1SdDJzQsAy9xxf39cdSSmRD1nPs4_i8PMGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to