From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 1 Nov 2018 18:22:00 +0300 From: Konstantin Osipov Subject: Re: [tarantool-patches] [PATCH v5 07/12] lib: introduce json_path_normalize routine Message-ID: <20181101152200.GH30032@chai> References: <134d5b3da2e0d0102287cceb4d347c88ef2616b5.1540795996.git.kshcherbatov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <134d5b3da2e0d0102287cceb4d347c88ef2616b5.1540795996.git.kshcherbatov@tarantool.org> To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com, Kirill Shcherbatov List-ID: * Kirill Shcherbatov [18/10/29 20:25]: > Introduced a new routine json_path_normalize that makes a > conversion of JSON path to the 'canonical' form: > - all maps keys are specified with operator ["key"] form > - all array indexes are specified with operator [i] form. > This notation is preferable because in the general case it can > be uniquely parsed. > We need such API in JSON indexes patch to store all paths in > 'canonical' form to commit the path uniqueness checks and > to tune access with JSON path hashtable. > > Need for #1012 Let's try to avoid this altogether. We could use parent references to check if path1 equals to path2. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov