Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 41665 invoked from network); 21 Aug 2007 00:21:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 00:21:21 -0000 Received: (qmail 7572 invoked by uid 500); 21 Aug 2007 00:21:18 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 7533 invoked by uid 500); 21 Aug 2007 00:21:18 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 7524 invoked by uid 99); 21 Aug 2007 00:21:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 17:21:18 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of catalina.wei@gmail.com designates 66.249.82.224 as permitted sender) Received: from [66.249.82.224] (HELO wx-out-0506.google.com) (66.249.82.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 00:21:16 +0000 Received: by wx-out-0506.google.com with SMTP id s7so1349480wxc for ; Mon, 20 Aug 2007 17:20:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dqX0k73h3D52jIIHn14+NIJKVdxo7oSGREMZ0dOvhCALAPPqgNuYRA3dwDf+LorY6Ff67illGQUUOjSNxGEh2F2UghGEkyZ4mbJEKpfPygoJ33rHKHubiHWFZGN2ntehtD/LW4gRBxOEWZVSnP4slgIZ10PVISfkEGltJNfFvr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=f5iwkS0zd+g9BswfKrX4xSo3BfBiIGWpY92T5sAYqB54Va68BIdmbAiT1xWmuDTkfnjLP6XVKBLbt92Rgsvc3OrbqOwK4ws/RPynKWl86ogIlRSR2FrEB1Ld/XBaT/bQQAhQj1t+cpxKsjgEQ/FLaQGeNMFcwGpH6Ddt88SMrN4= Received: by 10.70.61.3 with SMTP id j3mr11584547wxa.1187655655713; Mon, 20 Aug 2007 17:20:55 -0700 (PDT) Received: by 10.70.20.7 with HTTP; Mon, 20 Aug 2007 17:20:55 -0700 (PDT) Message-ID: Date: Mon, 20 Aug 2007 17:20:55 -0700 From: "catalina wei" To: dev@openjpa.apache.org Subject: Re: XML datatypes and data caching In-Reply-To: <7262f25e0708201647hceafa68n14c8e8450eb21e8a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_76576_689412.1187655655683" References: <7262f25e0708201231rc10bb9bge1ba9053c15f5665@mail.gmail.com> <7262f25e0708201545i4c407792h94f53f7154093f9b@mail.gmail.com> <7262f25e0708201647hceafa68n14c8e8450eb21e8a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_76576_689412.1187655655683 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 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 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 wrote: > > > > Hi Patrick, > > > > I can verify this. I will post result shortly. > > > > > > > > Catalina > > > > On 8/20/07, Patrick Linskey 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 > ------=_Part_76576_689412.1187655655683--