From dev-return-10880-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Wed Apr 11 20:03:53 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9DF5418064A for ; Wed, 11 Apr 2018 20:03:52 +0200 (CEST) Received: (qmail 54332 invoked by uid 500); 11 Apr 2018 18:03:51 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 54312 invoked by uid 99); 11 Apr 2018 18:03:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2018 18:03:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A180DC0921 for ; Wed, 11 Apr 2018 18:03:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.869 X-Spam-Level: * X-Spam-Status: No, score=1.869 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qekTi_x-9jN0 for ; Wed, 11 Apr 2018 18:03:49 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4FCCA5F256 for ; Wed, 11 Apr 2018 18:03:49 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id p142-v6so3924319lfd.6 for ; Wed, 11 Apr 2018 11:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=H+sed1GZg6OCjO1S3o0vYrAT27b20NpZPclYTqprlec=; b=oOgMgEvgIgB8bgDXijhZpeozqoA22pT9EMwI5bIED1IrgsTM7M2pXUf2WmdwsfRHFa Kq76D2ZwXMUm/vSGcQiHFnwADxY1x8m1GHEMuxFIlSX2nyMqxa0bATPR6Y0HQNj9atwB WGTz7GiFFC27Xa9+k1VLZOXF18PCIPo6unIdjMtn+HpFUtZ3em+m9DKGdNMWqOwBEJko A4ZpeXv0Cg/OosVvk6+NL1BU1mZc/jAkmOxKtV+m3FQV2dJ+sylgvwzNUqSRJ8bkVrlP uK+1jzplLEFZnqELr65+jIFG52GRPsI2A26tASxphAyVFvb6BnvZ2TXQ4twaJpqqrrFd 8dqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=H+sed1GZg6OCjO1S3o0vYrAT27b20NpZPclYTqprlec=; b=E3j++9kZQe5d/3dJquJdYxDi2KHKDqX20GW895bJC5W+UXro5isWKrbmNucm5yScvw ivWXdL0ah7laK0K6V9J03ym355Wo389zhrZ4CwoCa5ptZrRf1yZJCSP13o6uTEuX4q6E KZdZDzax1bR++B4HDfftKxitmAAbn1UbOH0sHUm+oLP2lnHpEcLUPB6yMVr5L3L7jKhb GyHTL+YyQB75b+5U6KvEGfaLOXd7xLr+mvyaq0YJfccfWpPWkE7KGFQOZTVuBITuGPbN 8xK1OTuacOgp+3jIZFtF+n1ekGRQ6X0Irhkg57WTVRnykNL0uEWBiqRZ52RisIj6AnKu FALA== X-Gm-Message-State: ALQs6tD5Zd5s429/cyz81i9h064eIK7DP5eXRLThdadA1+2Q2Hs3oI3v 5lk5D8ZypOmYZDoWbGV6GPdHcFn2CgwZXxiEE6/kJw== X-Google-Smtp-Source: AIpwx4+UEHScMYgTiTbHU033iL+vvUK95Azgko/+Iich6XLhHBpuYG2zxRqiI7PFCbmJw9+6rAG2+XrS7tyD++lE3bw= X-Received: by 10.46.5.200 with SMTP id 191mr3829100ljf.8.1523469827983; Wed, 11 Apr 2018 11:03:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:116:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 11:03:47 -0700 (PDT) In-Reply-To: <132FB2DE-FD22-4FBF-9B93-24158E17C121@objectstyle.org> References: <132FB2DE-FD22-4FBF-9B93-24158E17C121@objectstyle.org> From: Lon Varscsak Date: Wed, 11 Apr 2018 11:03:47 -0700 Message-ID: Subject: Re: Local Query Cache Problems To: dev@cayenne.apache.org Content-Type: multipart/alternative; boundary="001a114a6f6aec4e0f05699675a4" --001a114a6f6aec4e0f05699675a4 Content-Type: text/plain; charset="UTF-8" If an object stays in this cache though, don't I get potentially stale objects back later? On Wed, Apr 11, 2018 at 6:28 AM, Andrus Adamchik wrote: > > > > On Apr 10, 2018, at 6:47 PM, John Huss wrote: > > > > 1) Data written to the Local query cache will survive the lifetime of the > > ObjectContext. If the cache group it is written to does not have an > > explicit expiration time, then it will stay in the cache forever until > you > > run out of memory. > > I will need more time to comment on the bigger picture. But let me address > this point. Admittedly I used OSCache over the years, and only recently > switched to EhCache, so I may be overlooking something EhCache-specific, > but anyways... > > "Stay in the cache forever until you run out of memory" has never been an > issues, because the cache would normally have a max size and LRU > parameters. So unused data would simply be cycled out and we don't have to > worry about explicitly removing it. Also EhCache may actively remove > expired items (?), but OSCache certainly did not, and it was not a problem > either, also because of maxsize/LRU. > > So in other words, a properly sized cache should take care of all these > issues automatically. > > Andrus > > --001a114a6f6aec4e0f05699675a4--