If such latency worries you, use in-memory structures to pull the original documents based on the IDs of the results. Your dataset is small enough to do that, really. But I suspect this is premature optimization that you are trying to do.
-- Itamar Syn-Hershko http://code972.com | @synhershko <https://twitter.com/synhershko> Freelance Developer & Consultant Author of RavenDB in Action <http://manning.com/synhershko/> On Wed, Jan 15, 2014 at 5:56 PM, Arik Gaisler <[email protected]> wrote: > Thanks Itamar > > Im also seeing that the refresh is pretty high137.4ms > > Another factor is that the fetch times are constantly growing - while the > query times are cinctantly the same > > Arik > > > On Wednesday, January 15, 2014 5:33:51 PM UTC+2, Itamar Syn-Hershko wrote: > >> I believe this makes sense then - search is entirely in-memory operation >> (after a certain warm up), and fetch involves disk IO. Try keep your docs >> as small as possible and don't disable _source, but other than that you're >> bounded by the speed of your disks. >> >> -- >> >> Itamar Syn-Hershko >> http://code972.com | @synhershko <https://twitter.com/synhershko> >> Freelance Developer & Consultant >> Author of RavenDB in Action <http://manning.com/synhershko/> >> >> >> On Wed, Jan 15, 2014 at 5:31 PM, Arik Gaisler <[email protected]> wrote: >> >>> We are doing a query then fetch serach type >>> >>> >>> On Wednesday, January 15, 2014 4:48:58 PM UTC+2, Itamar Syn-Hershko >>> wrote: >>> >>>> What is the query type you are using? http://www.elasticsearc >>>> h.org/guide/en/elasticsearch/reference/current/search-request-search- >>>> type.html >>>> >>>> -- >>>> >>>> Itamar Syn-Hershko >>>> http://code972.com | @synhershko <https://twitter.com/synhershko> >>>> Freelance Developer & Consultant >>>> Author of RavenDB in Action <http://manning.com/synhershko/> >>>> >>>> >>>> On Wed, Jan 15, 2014 at 4:45 PM, Arik Gaisler <[email protected]>wrote: >>>> >>>>> Im using ElasticHQ to monitor our cluster and I am noticing that our >>>>> Search Fetch times are about 5X more then query times, which seems >>>>> unreasonable (20ms vs ~4ms) >>>>> >>>>> Im also noticing a 1.44 mb swap space on one of the nodes (the other >>>>> node is at 0) >>>>> >>>>> We're using a 2 node cluster, 2 shards 1 replica on EC2 m1.small >>>>> instances >>>>> >>>>> Our index contains about 27K docs, total size of ~ 60mb (pretty small >>>>> - hence the small instance) >>>>> >>>>> Any suggestions to why? >>>>> >>>>> Arik >>>>> >>>>> -- >>>>> 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/7307cbfe-55d3-41df-a2dc-86b74450a3bf%40goo >>>>> glegroups.com. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>> >>>> -- >>> 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/fc28fd75-67c9-46f2-99b2-03cb48bac34b% >>> 40googlegroups.com. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > 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/c1cba3ba-bd12-42f8-ba4d-06b64dc821a4%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/CAHTr4Zt866hyaW%3DCZB2N8W2AN2nLVWpr155zHvUAMcv7tUan9w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
