From user-return-12431-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Wed Jul 3 10:36:53 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 789C4180181 for ; Wed, 3 Jul 2019 12:36:53 +0200 (CEST) Received: (qmail 18792 invoked by uid 500); 3 Jul 2019 10:36:52 -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 18689 invoked by uid 99); 3 Jul 2019 10:36:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2019 10:36:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2880C180D89 for ; Wed, 3 Jul 2019 10:36:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=objectstyle.org header.b=kDMxbPUc; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=Y/K0e5R2 Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mFK4R9kuBxb5 for ; Wed, 3 Jul 2019 10:36:44 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=andrus@objectstyle.org; receiver= Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 40FB37E208 for ; Wed, 3 Jul 2019 10:36:43 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3874E21FE9 for ; Wed, 3 Jul 2019 06:36:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 03 Jul 2019 06:36:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=objectstyle.org; h=from:content-type:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; s=mesmtp; bh=riVYLs3mdIWCY55pbQ/Qhjr6fVKP7XnVi0vwRBb6H6E=; b=kDMxbPUc7HEz j17QxkCAHs/aZPS8cJ1RDToD26Jf3bJq4c+DBCJfsafTYCLlu4gFLoo17HilZYNf BJN2DZ4mTeZw7rOOU3WmjMCFo0SPgthi2rXbLLA93YMonGotiSltVPc0b+qnE96e oCC73VwR6xKVQW9x21RZ9Yr5qDcTn/o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=riVYLs3mdIWCY55pbQ/Qhjr6fVKP7XnVi0vwRBb6H 6E=; b=Y/K0e5R2yEkKdKp0uZOq1t8Xkj8nwED0Zm1ufJa8gtJ/ZkPgDRwXyclIx hKf3XJxhby/kiE244MtVxaMyz/dK4Jki38JdXcruRsal5Z/ZY1XaChOb1wRLoHQa pFlTn4BWR+lDH55l9dVauUXChZYX2e/YmOCyt5yJWMyVtvfEGX7wz3SFJWrC/Pvt vpKC447Tandf5zMZarhVhobB04/+EzWB7kTzdNAgtBjkjOt+a+z+ISs+tilJH5xq jQTAYSpQPMeXVa8DN7vjytQLirX2q/CftE2nZH9xcqwRjxL562YQaZBGP1cz1gtO 4Bg6nGtRnnYRaIoo+ojgZ430F8o8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfedtgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephfgtgfgguffffhfvjgfkofesthhqmh dthhdtvdenucfhrhhomheptehnughruhhsucetuggrmhgthhhikhcuoegrnhgurhhushes ohgsjhgvtghtshhthihlvgdrohhrgheqnecuffhomhgrihhnpegrphgrtghhvgdrohhrgh enucfkphepfedurddvgedrkeekrdeggeenucfrrghrrghmpehmrghilhhfrhhomheprghn ughruhhssehosghjvggtthhsthihlhgvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.2.104] (unknown [31.24.88.44]) by mail.messagingengine.com (Postfix) with ESMTPA id D348C380075 for ; Wed, 3 Jul 2019 06:36:35 -0400 (EDT) From: Andrus Adamchik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Deprecate SelectQuery in 4.2 Date: Wed, 3 Jul 2019 13:36:34 +0300 References: <90FDE244-39F0-414B-A360-1541C27F9610@earthlink.net> To: user@cayenne.apache.org In-Reply-To: Message-Id: <3543FBD1-5F0A-4F0F-B1CB-74F923EFAECC@objectstyle.org> X-Mailer: Apple Mail (2.3445.104.11) > RefreshQuery is another type of query I think that's the answer here. RefreshQuery is its own thing, and you = can keep using it. Andrus > On Jul 2, 2019, at 10:05 AM, Arseni Bulatski = wrote: >=20 > Hi, Joe > RefreshQuery is another type of query and is used to invalidate = individual > cache groups explicitly. To create ObjectSelect with similar behavior = you > can set cacheStrategy to QueryCacheStrategy.LOCAL_CACHE_REFRESH or > QueryCacheStrategy.SHARED_CACHE_REFRESH, depends on what type of cache = you > are using. > Analog of setCacheStrategy for ObjectSelect is > ObjectSelect.cacheStrategy(QueryCacheStrategy strategy). >=20 > On Mon, Jul 1, 2019 at 10:24 PM Joe Baldwin = wrote: >=20 >> Arseni, >>=20 >> What is the ObjectSelect analog to >>=20 >> RefreshQuery >> and >> setCacheStrategy >>=20 >> Thanks >> Joe >>=20 >>=20 >>> On Jun 28, 2019, at 9:47 AM, Arseni Bulatski = >> wrote: >>>=20 >>> Hi all, >>>=20 >>> SelectQuery is planned to be deprecated in 4.2. >>> ObjectSelect has better api and is recommended to use. >>>=20 >>> PR: https://issues.apache.org/jira/browse/CAY-2523 >>>=20 >>> Please, write your thoughts about it. >>=20 >>=20