Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 61443 invoked from network); 20 Jan 2008 16:43:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2008 16:43:51 -0000 Received: (qmail 55486 invoked by uid 500); 20 Jan 2008 16:43:40 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 55474 invoked by uid 500); 20 Jan 2008 16:43:40 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 55465 invoked by uid 99); 20 Jan 2008 16:43:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jan 2008 08:43:40 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 20 Jan 2008 16:43:15 +0000 Received: (qmail 16612 invoked from network); 20 Jan 2008 16:43:21 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 20 Jan 2008 16:43:21 -0000 Message-Id: <4435B5EB-F94A-402B-8A6C-E041CD97FE19@objectstyle.org> From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <6A164488-0567-4EBB-AFE8-D2F10899A586@objectstyle.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: CayenneRuntimeException: Can't find id Date: Sun, 20 Jan 2008 18:43:20 +0200 References: <10C7A1A1-45A2-49B1-B0F9-3AEDA18CE513@objectstyle.org> <53A4A304-E70B-4317-B9BA-17D3ACBD0E02@objectstyle.org> <21CF123E-29DC-4150-B2AA-0E020539BD71@objectstyle.org> <92D7FA57-35EC-48F5-BCC7-8A0528383B2A@ish.com.au> <6A164488-0567-4EBB-AFE8-D2F10899A586@objectstyle.org> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 19, 2008, at 11:59 PM, Andrus Adamchik wrote: >> When I remove setPageSize, caching works, so it's paradoxically >> better >> than with paging. With paging, on every page cayenne retrieves full >> table + records relevant for the page. > > Yes, the cache settings are skipped for paginated queries for > various technical reasons (except for the ROP scenario that Ari > mentioned - it was hand coded for this case)... although I think we > should make it work in all situations... BTW, fixing that now: https://issues.apache.org/cayenne/browse/CAY-967 After this is fixed, LOCAL_CACHE will work with paginated results, but not the SHARED_CACHE. Andrus