Re: Entity Caching

2015-03-22 Thread Adrian Crum
pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity cache that can be used 100

Re: Entity Caching

2015-03-22 Thread Adrian Crum
example of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing

Re: Entity Caching

2015-03-22 Thread Adrian Crum
ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity

Re: Entity Caching

2015-03-22 Thread Adrian Crum
to keep frequently used values/records closer to the code that uses them, ie in the application server. One real world example of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more

Re: Entity Caching

2015-03-22 Thread Jacques Le Roux
real world example of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code

Re: Entity Caching

2015-03-22 Thread Jacques Le Roux
used values/records closer to the code that uses them, ie in the application server. One real world example of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios

Re: Entity Caching

2015-03-22 Thread Jacques Le Roux
the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity cache that can be used 100% of the time? IMO

Re: Entity Caching

2015-03-21 Thread Scott Gray
of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory

Re: Entity Caching

2015-03-21 Thread Taher Alkhateeb
Crum adrian.c...@sandglass-software.com To: dev@ofbiz.apache.org Sent: Saturday, 21 March, 2015 10:39:09 AM Subject: Re: Entity Caching Thanks for the info David! I agree 100% with everything you said. There may be some misunderstanding about my advice. I suggested that caching should

Re: Entity Caching

2015-03-21 Thread Pierre Smits
quoteThe decision to cache or not should be made by a sysadmin/quote I agree. This should be a configuration aspect. But I would suggest to have it by default set to false. We have to take into consideration that in testing and staging environments the data sets to work with can be limited in

Re: Entity Caching

2015-03-21 Thread Adrian Crum
catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity cache

Re: Entity Caching

2015-03-21 Thread Adrian Crum
in the application server. One real world example of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching

Re: Entity Caching

2015-03-21 Thread Ron Wheeler
catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity cache

Re: Entity Caching

2015-03-21 Thread Christian Carlow
without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity cache that can be used

Re: Entity Caching

2015-03-20 Thread Scott Gray
disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background

Re: Entity Caching

2015-03-20 Thread Jacques Le Roux
. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable

Re: Entity Caching

2015-03-20 Thread Ron Wheeler
viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable due to a number of flaws in its design

Re: Entity Caching

2015-03-20 Thread Nicolas Malin
Le 19/03/2015 18:46, Adrian Crum a écrit : The translation to English is not good, but I think I understand what you are saying. Oups my apologies ! The entity values in the cache MUST be immutable - because multiple threads share the values. To do otherwise would require complicated

Re: Entity Caching

2015-03-20 Thread David E. Jones
to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible

Re: Entity Caching

2015-03-20 Thread Michael Brohl
the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write an entity cache that can be used 100% of the time? IMO the answer is NO. This is almost

Re: Entity Caching

2015-03-20 Thread Jacques Le Roux
to the code that uses them, ie in the application server. One real world example of this is the goal to be able to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer

Re: Entity Caching

2015-03-20 Thread Jacques Le Roux
to render ecommerce catalog and product pages without hitting the database. Over time the entity caching was made more complex to handle more caching scenarios, but still left to the developer to determine if caching is appropriate for the code they are writing. In theory is it possible to write

Re: Entity Caching

2015-03-19 Thread Adrian Crum
to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory

Re: Entity Caching

2015-03-19 Thread Scott Gray
with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable due

Re: Entity Caching

2015-03-19 Thread Scott Gray
will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable due to a number of flaws in its

Re: Entity Caching

2015-03-19 Thread Scott Gray
practices I like to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances

Re: Entity Caching

2015-03-19 Thread Adrian Crum
, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing

Re: Entity Caching

2015-03-19 Thread Adrian Crum
information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls

Re: Entity Caching

2015-03-19 Thread Ron Wheeler
OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls

Re: Entity Caching

2015-03-19 Thread Ron Wheeler
to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory

Re: Entity Caching

2015-03-19 Thread Adrian Crum
The translation to English is not good, but I think I understand what you are saying. The entity values in the cache MUST be immutable - because multiple threads share the values. To do otherwise would require complicated synchronization code in GenericValue (which would cause blocking and

Re: Entity Caching

2015-03-19 Thread Adrian Crum
best practices I like to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue

Re: Entity Caching

2015-03-19 Thread Scott Gray
, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity

Re: Entity Caching

2015-03-19 Thread Nicolas Malin
Le 18/03/2015 13:16, Adrian Crum a écrit : If you code Delegator calls to avoid the cache, then there is no way for a sysadmin to configure the caching behavior - that bit of code will ALWAYS make a database call. If you make all Delegator calls use the cache, then there is an additional

Re: Entity Caching

2015-03-18 Thread Rupert Howell
. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable due to a number of flaws in its design and in the code that calls

Re: Entity Caching

2015-03-18 Thread Jacopo Cappellato
On Mar 18, 2015, at 2:35 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: I would be interested in seeing a use case for that. This is just an example I could think of (there may be other better examples but I am in a rush and I can't concentrate): Client code A selects a bunch of

Entity Caching

2015-03-18 Thread Adrian Crum
I would like to share some insights into the entity cache feature, some best practices I like to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity

Re: Entity Caching

2015-03-18 Thread Adrian Crum
I would be interested in seeing a use case for that. I view delegator calls as being no different than SQL statements. Where in the SQL grammar do you tell the database to get a table row from its cache or not? That detail is left to the implementation, and in some cases it can be controlled

Re: Entity Caching

2015-03-18 Thread Rupert Howell
to share some insights into the entity cache feature, some best practices I like to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching

Re: Entity Caching

2015-03-18 Thread Adrian Crum
entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable due to a number of flaws in its design and in the code that calls

Re: Entity Caching

2015-03-18 Thread Adrian Crum
OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database

Re: Entity Caching

2015-03-18 Thread Jacopo Cappellato
On Mar 18, 2015, at 1:16 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: If you code Delegator calls to avoid the cache, then there is no way for a sysadmin to configure the caching behavior - that bit of code will ALWAYS make a database call. If you make all Delegator calls

Re: Entity Caching

2015-03-18 Thread Adrian Crum
On 3/18/2015 1:46 PM, Jacopo Cappellato wrote: On Mar 18, 2015, at 2:35 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: I would be interested in seeing a use case for that. This is just an example I could think of (there may be other better examples but I am in a rush and I can't

Re: Entity Caching

2015-03-18 Thread Jacques Le Roux
to follow, and some related information. Some OFBiz experts may disagree with some of my views, and that is okay. Different experiences with OFBiz will lead to different viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory

Re: Entity Caching

2015-03-18 Thread Jacopo Cappellato
viewpoints. The OFBiz entity caching feature is intended to improve performance by keeping GenericValue instances in memory - decreasing the number of calls to the database. Background -- Initially, the entity cache was very unreliable due to a number of flaws in its design

Re: Entity Caching

2015-03-18 Thread Ron Wheeler
+1 People often forget that cache memory is hundreds or thousands time faster that disk access or database references. Even with the overhead of distributed cache management. Any extra code required executes at lightspeed rather than rotational speed or even SSD speed. It is also easier to

[jira] Closed: (OFBIZ-3090) Resolve widget action entity caching with filter-by-date

2009-11-04 Thread Jacques Le Roux (JIRA)
entity caching with filter-by-date Key: OFBIZ-3090 URL: https://issues.apache.org/jira/browse/OFBIZ-3090 Project: OFBiz Issue Type: Improvement Components: ALL COMPONENTS

[jira] Created: (OFBIZ-3090) Resolve widget action entity caching with filter-by-date

2009-10-26 Thread Bob Morley (JIRA)
Resolve widget action entity caching with filter-by-date Key: OFBIZ-3090 URL: https://issues.apache.org/jira/browse/OFBIZ-3090 Project: OFBiz Issue Type: Improvement

[jira] Updated: (OFBIZ-3090) Resolve widget action entity caching with filter-by-date

2009-10-26 Thread Bob Morley (JIRA)
entity caching with filter-by-date Key: OFBIZ-3090 URL: https://issues.apache.org/jira/browse/OFBIZ-3090 Project: OFBiz Issue Type: Improvement Components: ALL COMPONENTS