openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@gmail.com>
Subject Re: [jira] Created: (OPENJPA-556) Data cache infrastructure should take advantage of batching
Date Sat, 05 Apr 2008 00:25:35 GMT
>  I hope this goes through very soon in the code...

As I mentioned, I already checked in the change, so it's there in the
latest 1.1.0-SNAPSHOT builds.

-Patrick

On Fri, Apr 4, 2008 at 5:05 PM,  <Frederic_Bellier@capgroup.com> wrote:
> The reason I raised that point was becuase I am using a Coherence cache.
>  And I am implementing the getAll - putAll method etc... into a brand new
>  plugin for OpenJPA.
>
>  But I think that for anyone else that create an OpenJPA plugin for their
>  favorite cache product - this would give them the ability to do the right
>  thing.
>
>  I hope this goes through very soon in the code...
>
>  Frederic
>
>
>
>
>
>              "Daniel Lee"
>              <tsunfanglee@gmai
>              l.com>                                                     To
>                                        dev@openjpa.apache.org
>                                                                         cc
>              04/04/2008 01:01
>              PM                                                    Subject
>                                        Re: [jira] Created: (OPENJPA-556)
>                                        Data cache infrastructure should
>              Please respond to         take advantage of batching
>              dev@openjpa.apach
>                    e.org
>
>
>
>
>
>
>
>
>
>
>  That's right, that the code here (transformToVersionSafePCDatas) should
>  call
>  cache.containsAll() or cache.getAll().  That way, it will save a lot for
>  any
>  data cache that provide getAll().  It won't gain much for OpanJPA "native"
>  data cache since it is delegated to AbstractDataCache.getAll() (ln. 449)
>  which loops thru the list to get the objects from the cache.  However, it
>  save the traffic if any.
>
>  On Thu, Apr 3, 2008 at 11:51 PM, Patrick Linskey (JIRA) <jira@apache.org>
>  wrote:
>
>  > Data cache infrastructure should take advantage of batching
>  > -----------------------------------------------------------
>  >
>  >                 Key: OPENJPA-556
>  >                 URL: https://issues.apache.org/jira/browse/OPENJPA-556
>  >             Project: OpenJPA
>  >          Issue Type: Improvement
>  >            Reporter: Patrick Linskey
>  >
>  >
>  > From the newsgroup:
>  >
>  > "The DataCacheStoreManager.transformToVersionSafePCDatas()  line 261.
>  This
>  > method should call either cache.containsAll() or cache.getAll(). The
>  > current implementation makes one call to the cache for each element in
>  the
>  > collection."
>  >
>  > --
>  > This message is automatically generated by JIRA.
>  > -
>  > You can reply to this email to add a comment to the issue online.
>  >
>  >
>
>
>



-- 
Patrick Linskey
202 669 5907

Mime
View raw message