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 1DFE02BBD0 for ; Thu, 4 Oct 2018 08:00:39 -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 8GhgB1vesz-F for ; Thu, 4 Oct 2018 08:00:39 -0400 (EDT) Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [217.69.128.38]) (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 D1B552BAD0 for ; Thu, 4 Oct 2018 08:00:38 -0400 (EDT) Date: Thu, 4 Oct 2018 15:00:35 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH] sql: refactor SQL cursor to remove write ones Message-ID: <20181004120034.pbdqm7thu7kiqa25@tarantool.org> References: <4aec5b52bc28f47ad2af0ac6f4e64be0712f378b.1538389679.git.kyukhin@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4aec5b52bc28f47ad2af0ac6f4e64be0712f378b.1538389679.git.kyukhin@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: korablev@tarantool.org Cc: tarantool-patches@freelists.org Hello, On 01 окт 13:31, Kirill Yukhin wrote: > In Tarantool opening and positioning cursor for writing > have no sense. So refactor SQL code, to perform: > - Creation of ephemeral table w/o any cursors machinery. > No op-code returns register which contains plain pointer > to the ephemeral space. > - OpenRead/OpenWrite opcodes were replaced with single > CursorOpen op-code, which establishes new cursor w/ > intention to sebsequent read from the space. This opcode > accepts both plain pointer (in P4 operand) and register > which contains pointer (inn P3) to the ephemeral space. > This query scheduler and DML routines thoroughly. > > Closes #3182 > Part of #2362 > --- > Branch: https://github.com/tarantool/tarantool/commits/kyukhin/gh-3182-repair-cursors-2 > Issue: https://github.com/tarantool/tarantool/issues/3182 Patch was checked into 2.0 branch. -- Regards, Kirill Yukhin