Being used to working with Hibernate, for instance, I know that I shouldn't
be creating 'sessionFactory' instances happily, as they are quite expensive
to create.
So my question applies now to clients in ES: are they expensive to
create/destroy or, on the other hand, they are so light that I can
create/destroy them as many times as I want in my application?
My application uses the Transport Client to send index/search requests to a
remote ES server. And these requests' frequency can vary depending on
products' catalogs availability, so it could be from several times a day to
once a month for each catalog.
The client should be instantiated once and used throughout the lifecycle of the application. Similar to Hibernate SeassionFactory.
On Friday, February 4, 2011 at 2:05 PM, Enrique Medina Montenegro wrote:
Hi,
Being used to working with Hibernate, for instance, I know that I shouldn't be creating 'sessionFactory' instances happily, as they are quite expensive to create.
So my question applies now to clients in ES: are they expensive to create/destroy or, on the other hand, they are so light that I can create/destroy them as many times as I want in my application?
My application uses the Transport Client to send index/search requests to a remote ES server. And these requests' frequency can vary depending on products' catalogs availability, so it could be from several times a day to once a month for each catalog.
The client should be instantiated once and used throughout the lifecycle
of the application. Similar to Hibernate SeassionFactory.
On Friday, February 4, 2011 at 2:05 PM, Enrique Medina Montenegro wrote:
Hi,
Being used to working with Hibernate, for instance, I know that I shouldn't
be creating 'sessionFactory' instances happily, as they are quite expensive
to create.
So my question applies now to clients in ES: are they expensive to
create/destroy or, on the other hand, they are so light that I can
create/destroy them as many times as I want in my application?
My application uses the Transport Client to send index/search requests to a
remote ES server. And these requests' frequency can vary depending on
products' catalogs availability, so it could be from several times a day to
once a month for each catalog.
The client should be instantiated once and used throughout the lifecycle of the application. Similar to Hibernate SeassionFactory.
On Friday, February 4, 2011 at 2:05 PM, Enrique Medina Montenegro wrote:
Hi,
Being used to working with Hibernate, for instance, I know that I shouldn't be creating 'sessionFactory' instances happily, as they are quite expensive to create.
So my question applies now to clients in ES: are they expensive to create/destroy or, on the other hand, they are so light that I can create/destroy them as many times as I want in my application?
My application uses the Transport Client to send index/search requests to a remote ES server. And these requests' frequency can vary depending on products' catalogs availability, so it could be from several times a day to once a month for each catalog.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.