Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 0/4] sql: refactor insertion and lua
@ 2018-04-03 15:34 Vladislav Shpilevoy
  2018-04-03 15:34 ` [tarantool-patches] [PATCH 1/4] sql: remove unused opcodes from OP_[Sorter/Idx][Insert/Replace] Vladislav Shpilevoy
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Vladislav Shpilevoy @ 2018-04-03 15:34 UTC (permalink / raw)
  To: tarantool-patches; +Cc: korablev, Vladislav Shpilevoy

Branch: http://github.com/tarantool/tarantool/tree/gh-2618-preliminary-patches
Issue: https://github.com/tarantool/tarantool/issues/2618

The patchset consists of patches preliminary to SQL IProto
"last updated tuple" introduction. It is possible, that its
implementation plan will be changed several times, but this
patchset looks useful even with no IProto "last updated tuple".

1) The patch does SQL INSERT/UPDATE refactoring by removal of 2
unused VDBE parameters, and by restyling of final insertion
opcodes generator: sqlite3CompleteInsertion.

2) The patch does refactoring of Lua SQL executor, that is
extremely overengineered now.

Vladislav Shpilevoy (4):
  sql: remove unused opcodes from OP_[Sorter/Idx][Insert/Replace]
  sql: remove unused error codes, use enum instead of defines
  sql: simplify lua SQL executor
  sql: remove useless branching in insertOrReplace

 src/box/lua/sql.c       | 239 +++++++-----------------------------------------
 src/box/sql.c           |  18 ++--
 src/box/sql/analyze.c   |   8 +-
 src/box/sql/build.c     |   4 -
 src/box/sql/delete.c    |   2 +-
 src/box/sql/expr.c      |   5 +-
 src/box/sql/insert.c    |  80 ++++------------
 src/box/sql/main.c      |  32 -------
 src/box/sql/os_unix.c   |   9 +-
 src/box/sql/select.c    |  29 +++---
 src/box/sql/sqliteInt.h | 102 +++++++++++++--------
 src/box/sql/trigger.c   |   3 +-
 src/box/sql/update.c    |   6 +-
 src/box/sql/vdbe.c      |  10 +-
 src/box/sql/vdbeInt.h   |   5 +-
 src/box/sql/vdbeapi.c   |   9 --
 src/box/sql/vdbeaux.c   |   1 -
 src/box/sql/wherecode.c |   5 +-
 18 files changed, 152 insertions(+), 415 deletions(-)

-- 
2.14.3 (Apple Git-98)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-04-05 11:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 15:34 [tarantool-patches] [PATCH 0/4] sql: refactor insertion and lua Vladislav Shpilevoy
2018-04-03 15:34 ` [tarantool-patches] [PATCH 1/4] sql: remove unused opcodes from OP_[Sorter/Idx][Insert/Replace] Vladislav Shpilevoy
2018-04-03 23:01   ` [tarantool-patches] " n.pettik
2018-04-04 10:26     ` Vladislav Shpilevoy
2018-04-04 11:51       ` n.pettik
2018-04-04 14:48         ` n.pettik
2018-04-03 15:34 ` [tarantool-patches] [PATCH 2/4] sql: remove unused error codes, use enum instead of defines Vladislav Shpilevoy
2018-04-03 23:01   ` [tarantool-patches] " n.pettik
2018-04-04 10:26     ` Vladislav Shpilevoy
2018-04-04 11:30       ` n.pettik
2018-04-03 15:34 ` [tarantool-patches] [PATCH 3/4] sql: simplify lua SQL executor Vladislav Shpilevoy
2018-04-03 23:02   ` [tarantool-patches] " n.pettik
2018-04-03 15:34 ` [tarantool-patches] [PATCH 4/4] sql: remove useless branching in insertOrReplace Vladislav Shpilevoy
2018-04-03 23:01   ` [tarantool-patches] " n.pettik
2018-04-05 11:43 ` [tarantool-patches] Re: [PATCH 0/4] sql: refactor insertion and lua Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox