Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 30878200C31 for ; Wed, 22 Feb 2017 04:04:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2F17F160B74; Wed, 22 Feb 2017 03:04:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 796FC160B68 for ; Wed, 22 Feb 2017 04:04:45 +0100 (CET) Received: (qmail 3920 invoked by uid 500); 22 Feb 2017 03:04:44 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 3887 invoked by uid 99); 22 Feb 2017 03:04:44 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 03:04:44 +0000 Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 58EC71A0323 for ; Wed, 22 Feb 2017 03:04:44 +0000 (UTC) Received: by mail-qk0-f169.google.com with SMTP id x71so74646208qkb.3 for ; Tue, 21 Feb 2017 19:04:44 -0800 (PST) X-Gm-Message-State: AMke39mDMuuKPY9HhiDf/543bFKglhQAfae7qzANTgExXpZ4pf5DXda6RLVC8soPCWHzC+WVqy01xWGcyRDyf3n0 X-Received: by 10.233.235.211 with SMTP id b202mr13016615qkg.262.1487732683487; Tue, 21 Feb 2017 19:04:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.54.231 with HTTP; Tue, 21 Feb 2017 19:04:03 -0800 (PST) In-Reply-To: References: From: Dmitriy Setrakyan Date: Tue, 21 Feb 2017 19:04:03 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Entry filter in IgniteCache#loadCache To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1148ade21f2166054915c2b6 archived-at: Wed, 22 Feb 2017 03:04:46 -0000 --001a1148ade21f2166054915c2b6 Content-Type: text/plain; charset=UTF-8 Val, do you think this change will be worth breaking backward API compatibility? On Tue, Feb 21, 2017 at 2:45 PM, Valentin Kulichenko < valentin.kulichenko@gmail.com> wrote: > On Mon, Feb 20, 2017 at 12:23 PM, Dmitriy Setrakyan > > wrote: > > > On Sat, Feb 18, 2017 at 12:51 PM, Valentin Kulichenko < > > valentin.kulichenko@gmail.com> wrote: > > > > > Igniters, > > > > > > Currently IgniteCache.loadCache has optional entry filter that can be > > > passed as an argument. It seems to be redundant because: > > > > > > - Filtering that is done by this filter can be as well implemented > > > within CacheStore itself. Moreover, if the filtering can be done on > DB > > > level, it's better from performance standpoint. > > > > > > > What if user configures our standard JDBC store? How will the customer > > filtering logic be added in this case? > > > > Our store accepts custom SQL queries. This should be enough to do any > filtering and it's also better from performance standpoint. > > > > > > > > > - In case filtering has to be dynamic (i.e. use does wants to > provide > > a > > > predicate as an argument), generic arguments can be used. > > > > > > > Not sure what you mean by "generic arguments". Can you explain? > > > > I mean array of arguments passed to CacheStore.loadCache() method. Any > arguments can be used there, including predicates. > > > > > > > > > > > > Having said that, this predicate doesn't add any value and therefore > > > creates confusion. And frankly, I've never seen anyone using it. I > > suggest > > > to remove it completely in 2.0. > > > > > > > I am not sure if I agree. Why break API compatibility here for no > apparent > > benefit? > > > > > > > > > > Thoughts? > > > > > > -Val > > > > > > --001a1148ade21f2166054915c2b6--