From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D342221DFA for ; Fri, 20 Apr 2018 12:09:24 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BoqensWFxo14 for ; Fri, 20 Apr 2018 12:09:24 -0400 (EDT) Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 1CE5421DBF for ; Fri, 20 Apr 2018 12:09:24 -0400 (EDT) From: "n.pettik" Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_EFD6FE27-CE70-4484-96CE-B449BDC36A9C" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [tarantool-patches] Re: [PATCH] sql: xfer optimization issue Date: Fri, 20 Apr 2018 19:09:18 +0300 In-Reply-To: References: <1524065531-32467-1-git-send-email-hollow653@gmail.com> <08FAE06B-F6D3-49BD-9011-B5770629AA21@tarantool.org> <5BB99B27-5F86-4664-AAD5-57A22ECED854@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Hollow111 Cc: tarantool-patches@freelists.org --Apple-Mail=_EFD6FE27-CE70-4484-96CE-B449BDC36A9C Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 20 Apr 2018, at 18:09, Hollow111 wrote: > > Yes, that's true this code is needed if any of the > cases in if-clause != 0. But the point is that in Tarantool > there's always a PRIMARY KEY that is obviously unique > which means that the second case is always != 0 and > the result of the boolean expression is always not 0, > hence there's no reason for this if-check. Ok, I got it. You are right: I misunderstood conditions under if-clause. --Apple-Mail=_EFD6FE27-CE70-4484-96CE-B449BDC36A9C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On 20 Apr 2018, at 18:09, Hollow111 <hollow653@gmail.com>= wrote:

Yes, that's true this code is needed if any of = the 
cases in if-clause !=3D 0. But the point = is that in Tarantool
there's always a PRIMARY KEY that is = obviously unique
which means that the second case is = always !=3D 0 and
the result of the boolean = expression is always not 0,
hence there's no reason = for this if-check.

Ok, I got it. You are right: I misunderstood = conditions under if-clause.


= --Apple-Mail=_EFD6FE27-CE70-4484-96CE-B449BDC36A9C--