You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Patrick Linskey <pl...@gmail.com> on 2007/08/20 21:31:25 UTC

XML datatypes and data caching

Hi,

Have we done any testing of the interaction between XML datatypes and
the data cache?

-Patrick

-- 
Patrick Linskey
202 669 5907

Re: XML datatypes and data caching

Posted by Patrick Linskey <pl...@gmail.com>.
Great.

-Patrick

On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> Patric,
> Before commit, we have a copy of the old value in the cache.
> The new value is updated in cache on commit().
> So the changes only visible after commit.
>
> Catalina
>
>
> On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> >
> > Do we make a copy of the data in the cache? I.e., if you load some
> > data so it gets into cache, then change something inside the XML
> > graph, but do not commit, are the changes visible?
> >
> > -Patrick
> >
> > On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> > > Patrick,
> > > Right now the persistent field mapped to XML column is cached just like
> > > other persist field when DataCache is turned on.
> > >
> > > Do we want to change this behavior  to not caching the xml  field value?
> > > I don't understand why we want to prevent the xml field from getting
> > into
> > > cache.
> > >
> > > The same testcase in openjpa-persistence-jdbc ran OK with DataCache
> > turned
> > > on.
> > >
> > > Catalina
> > >
> > > On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> > > >
> > > > Great. If you could add a test case, that would be very helpful for
> > > > ongoing verification.
> > > >
> > > > I think that initially, it is probably sufficient to just prevent
> > > > these field types from getting into cache.
> > > >
> > > > -Patrick
> > > >
> > > > On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> > > > > Hi Patrick,
> > > > > I can verify this. I will post result shortly.
> > > > >
> > > > > Catalina
> > > > > On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Have we done any testing of the interaction between XML datatypes
> > and
> > > > > > the data cache?
> > > > > >
> > > > > > -Patrick
> > > > > >
> > > > > > --
> > > > > > Patrick Linskey
> > > > > > 202 669 5907
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Patrick Linskey
> > > > 202 669 5907
> > > >
> > >
> >
> >
> > --
> > Patrick Linskey
> > 202 669 5907
> >
>


-- 
Patrick Linskey
202 669 5907

Re: XML datatypes and data caching

Posted by catalina wei <ca...@gmail.com>.
Patric,
Before commit, we have a copy of the old value in the cache.
The new value is updated in cache on commit().
So the changes only visible after commit.

Catalina


On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
>
> Do we make a copy of the data in the cache? I.e., if you load some
> data so it gets into cache, then change something inside the XML
> graph, but do not commit, are the changes visible?
>
> -Patrick
>
> On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> > Patrick,
> > Right now the persistent field mapped to XML column is cached just like
> > other persist field when DataCache is turned on.
> >
> > Do we want to change this behavior  to not caching the xml  field value?
> > I don't understand why we want to prevent the xml field from getting
> into
> > cache.
> >
> > The same testcase in openjpa-persistence-jdbc ran OK with DataCache
> turned
> > on.
> >
> > Catalina
> >
> > On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> > >
> > > Great. If you could add a test case, that would be very helpful for
> > > ongoing verification.
> > >
> > > I think that initially, it is probably sufficient to just prevent
> > > these field types from getting into cache.
> > >
> > > -Patrick
> > >
> > > On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> > > > Hi Patrick,
> > > > I can verify this. I will post result shortly.
> > > >
> > > > Catalina
> > > > On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > Have we done any testing of the interaction between XML datatypes
> and
> > > > > the data cache?
> > > > >
> > > > > -Patrick
> > > > >
> > > > > --
> > > > > Patrick Linskey
> > > > > 202 669 5907
> > > > >
> > > >
> > >
> > >
> > > --
> > > Patrick Linskey
> > > 202 669 5907
> > >
> >
>
>
> --
> Patrick Linskey
> 202 669 5907
>

Re: XML datatypes and data caching

Posted by Patrick Linskey <pl...@gmail.com>.
Do we make a copy of the data in the cache? I.e., if you load some
data so it gets into cache, then change something inside the XML
graph, but do not commit, are the changes visible?

-Patrick

On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> Patrick,
> Right now the persistent field mapped to XML column is cached just like
> other persist field when DataCache is turned on.
>
> Do we want to change this behavior  to not caching the xml  field value?
> I don't understand why we want to prevent the xml field from getting into
> cache.
>
> The same testcase in openjpa-persistence-jdbc ran OK with DataCache turned
> on.
>
> Catalina
>
> On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> >
> > Great. If you could add a test case, that would be very helpful for
> > ongoing verification.
> >
> > I think that initially, it is probably sufficient to just prevent
> > these field types from getting into cache.
> >
> > -Patrick
> >
> > On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> > > Hi Patrick,
> > > I can verify this. I will post result shortly.
> > >
> > > Catalina
> > > On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> > > >
> > > > Hi,
> > > >
> > > > Have we done any testing of the interaction between XML datatypes and
> > > > the data cache?
> > > >
> > > > -Patrick
> > > >
> > > > --
> > > > Patrick Linskey
> > > > 202 669 5907
> > > >
> > >
> >
> >
> > --
> > Patrick Linskey
> > 202 669 5907
> >
>


-- 
Patrick Linskey
202 669 5907

Re: XML datatypes and data caching

Posted by catalina wei <ca...@gmail.com>.
Patrick,
Right now the persistent field mapped to XML column is cached just like
other persist field when DataCache is turned on.

Do we want to change this behavior  to not caching the xml  field value?
I don't understand why we want to prevent the xml field from getting into
cache.

The same testcase in openjpa-persistence-jdbc ran OK with DataCache turned
on.

Catalina

On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
>
> Great. If you could add a test case, that would be very helpful for
> ongoing verification.
>
> I think that initially, it is probably sufficient to just prevent
> these field types from getting into cache.
>
> -Patrick
>
> On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> > Hi Patrick,
> > I can verify this. I will post result shortly.
> >
> > Catalina
> > On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > Have we done any testing of the interaction between XML datatypes and
> > > the data cache?
> > >
> > > -Patrick
> > >
> > > --
> > > Patrick Linskey
> > > 202 669 5907
> > >
> >
>
>
> --
> Patrick Linskey
> 202 669 5907
>

Re: XML datatypes and data caching

Posted by Patrick Linskey <pl...@gmail.com>.
Great. If you could add a test case, that would be very helpful for
ongoing verification.

I think that initially, it is probably sufficient to just prevent
these field types from getting into cache.

-Patrick

On 8/20/07, catalina wei <ca...@gmail.com> wrote:
> Hi Patrick,
> I can verify this. I will post result shortly.
>
> Catalina
> On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
> >
> > Hi,
> >
> > Have we done any testing of the interaction between XML datatypes and
> > the data cache?
> >
> > -Patrick
> >
> > --
> > Patrick Linskey
> > 202 669 5907
> >
>


-- 
Patrick Linskey
202 669 5907

Re: XML datatypes and data caching

Posted by catalina wei <ca...@gmail.com>.
Hi Patrick,
I can verify this. I will post result shortly.

Catalina
On 8/20/07, Patrick Linskey <pl...@gmail.com> wrote:
>
> Hi,
>
> Have we done any testing of the interaction between XML datatypes and
> the data cache?
>
> -Patrick
>
> --
> Patrick Linskey
> 202 669 5907
>