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 5D32A200C6A for ; Wed, 19 Apr 2017 23:26:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5BD4D160B9C; Wed, 19 Apr 2017 21:26:13 +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 AC2EE160B94 for ; Wed, 19 Apr 2017 23:26:12 +0200 (CEST) Received: (qmail 95572 invoked by uid 500); 19 Apr 2017 21:26:11 -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 95560 invoked by uid 99); 19 Apr 2017 21:26:11 -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, 19 Apr 2017 21:26:11 +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 0AB771809FF for ; Wed, 19 Apr 2017 21:26:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.48 X-Spam-Level: X-Spam-Status: No, score=0.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id vCQbnyELUeQQ for ; Wed, 19 Apr 2017 21:26:09 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 81EEA5F39D for ; Wed, 19 Apr 2017 21:26:08 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id r190so32826577wme.1 for ; Wed, 19 Apr 2017 14:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=EyNiBPrhVpsh25tT5Xov2hpua4xJnaLiGNxywrcVzdA=; b=T2xoJqAGFPNw28fW0sq+dJdtfOGMqT0Ugm5r4gFk0Uf/kz6B8izfZPdq3af1hqOHhx P0/AEewPRJgnUdSf61IeE21l74kpyRVV+X5YmwaLWrdA4236dIeO0XZLOF9FAM8sbz0W RPl8dIFSfAmB2kfv0U+y1eIEeSMMmcMveq5P3FOW9qbMXyH1o59WI1cEtXQgPi+RIZpN D6ZGARIr+vBkDuMjp1MwdL5IzOGNl/IB7vgLiQllolMiC2uWvDXrBo6gEmzo6GbHvM+K FaOS4toI+hIcj3bB8c9N+LY9fs8Z42M+KLmj27318uJyp1G0j0AFNaU9JSTjBAPltYJT ghQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=EyNiBPrhVpsh25tT5Xov2hpua4xJnaLiGNxywrcVzdA=; b=Q1pwluPj9R4LNKiSUafArWBsiN9RZJGw4w2FPApARmU/zPh5HkLvZZmjUgeLh97Ws3 d4iQTW0RHmy5WSw9+zkrGuyTicj7XQXgHPooKHCuawLjqFoVz3zqnfxaBe3If4svsVg1 0Ecym0r9X6Rzr/l1ZzUafJ1v+2gsbCIL2FWYFYKR0WX2k6f46K5ZtINbtwceL/DCCO9G wrWudCS9qeLwrrje+MoaC2SeK+zWOY6RvknQ0VeaWeDDqdXB9LTXMaWMyzPzPB/W3ZEZ JtmOFMhXFOR+1p2U+xN+DxqzJ//jFTP7eLMNWHZOl0C0HkZdz9FI4OuRzV62Ou8ijG+p ueBw== X-Gm-Message-State: AN3rC/6vXqhaxw9LAPtAKnUbDgDXf5raX02qDYZZICcgqIgXeTkQhgGn dgRXgFsq0RdCPumnOTFl9g== X-Received: by 10.28.10.70 with SMTP id 67mr23689wmk.131.1492637167694; Wed, 19 Apr 2017 14:26:07 -0700 (PDT) Received: from [192.168.1.65] (host86-159-50-128.range86-159.btcentralplus.com. [86.159.50.128]) by smtp.gmail.com with ESMTPSA id u9sm20942497wme.8.2017.04.19.14.26.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 14:26:06 -0700 (PDT) From: Christos Erotocritou Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Wed, 19 Apr 2017 22:26:05 +0100 Subject: Re: Allow only one SQL table per cache Message-Id: <72FA13F5-D6FE-4E2B-80A0-57ABB686B3C2@gridgain.com> References: In-Reply-To: To: dev@ignite.apache.org X-Mailer: iPhone Mail (14E304) archived-at: Wed, 19 Apr 2017 21:26:13 -0000 I've not come across a case where we used multiple tables per cache and gene= rally advise against it. Because it is allowed I have though witnessed cases= where users at an early stage use one cache for multiple entities and ended= up confused. =46rom a users stand point I would agree with Vlad to remove t= his.=20 C.=20 > On 19 Apr 2017, at 21:32, Vladimir Ozerov wrote: >=20 > Folks, >=20 > Currently we allow multiple SQL tables per cache. This considered a bad > practice as single cache is getting polluted with unrelated key-value pair= s. >=20 > Earlier this use case made sense due to high per-cache overhead and some > limitation of FairAffinityFunction which cannot guarantee equal partition > distribution. AFAIK both issues are resolved. >=20 > I think we have no reason to allow multiple tables per cache at the moment= . > If we restrict it to one table we will be able to simplify significantly > query engine internals and improve performance a bit. Also it aligns nicel= y > with upcoming CREATE TABLE feature. >=20 > What do you think about this change? >=20 > Vladimir.