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 ACBB12E962 for ; Thu, 6 Jun 2019 07:58:14 -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 L1Q-YbnfZj1i for ; Thu, 6 Jun 2019 07:58:14 -0400 (EDT) Received: from smtp47.i.mail.ru (smtp47.i.mail.ru [94.100.177.107]) (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 089D62E885 for ; Thu, 6 Jun 2019 07:58:13 -0400 (EDT) Date: Thu, 6 Jun 2019 14:58:11 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH v5 0/6] box: run checks on insertions in LUA spaces Message-ID: <20190606115811.7fbxden4j2jac5mq@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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: tarantool-patches@freelists.org Cc: v.shpilevoy@tarantool.org, Kirill Shcherbatov Hello, On 23 May 13:19, Kirill Shcherbatov wrote: > Fire CK constraints for LUA spaces. > To achieve this goal, we reworked data dictionary, to store ck > constraints in separate space _ck_constraints and updated data > migration script to migrate existent data there. This also would > be useful in future to implement ALTER SPACE ADD CONSTRAINT > operation. Now we do not support CK constraint creation on > non-empty space. > Each CK has own precompiled VDBE machine that performs this > check with tuple fields mapped to it's memory with sql_bind() api. > In case of ck constraint conflict detected by this VM we abort > the transaction and return error to user. > Finally, we introduced a LUA-wrapper that provide a user-friendly > way to manage space ck constraints. > > Changes in version 5: > - a new tuple_fetcher class to access tuple fields fast > - refactored _ck_constraint space format and indexes > - one on_replace trigger for all ck constraints > - trim_space_snprintf fixes: do not trim substring in ' or " > - do not wrap ck_constraint methods > - many minor fixes > > v4: https://www.freelists.org/post/tarantool-patches/PATCH-v4-04-box-run-checks-on-insertions-in-LUA-spaces > > Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-3691-checks-on-server-side > Issue: https://github.com/tarantool/tarantool/issues/3691 I've checked the patch set into master. -- Regards, Kirill Yukhin