Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Lifetime of Transient lists in the cache

Thanks Tom.

That looks interesting. I could combine QueryHints with the list
holder. I would still need the list holder, so it would be interesting
to know how the list holder expires.

Kind Regards,

Bernard


On Thu, 23 Jun 2011 13:52:11 -0400, you wrote:

>Hi Bernard,
>
>   Have you looked at our Query Results cache.  It allows you to configure a 
>cache for a query that will allow you to configure when it hits the database and 
>when it returns the cached results?
>
>   Here is a link to the javadoc in our QueryHints.  The next few hints listed 
>in this javadoc related to the query results cache.
>
>http://www.eclipse.org/eclipselink/api/2.3/org/eclipse/persistence/config/QueryHints.html#QUERY_RESULTS_CACHE
>
>-Tom
>
>bht@xxxxxxxxxxxxx wrote:
>> Hi,
>> 
>> I would like to implement a relatively static list of entities in a
>> list holder entity as a @Transient field. The puropse is to avoid
>> re-runnning the query that produces the list.
>> 
>> Are there any known issues with this strategy?
>> 
>> Do I need to control the cache and how? I am concerned about losing
>> multiple such lists at once.
>> 
>> Many thanks,
>> 
>> Bernard



Back to the top