Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 0/4] Remove space id and index id from cursor
@ 2018-03-19 18:10 Nikita Pettik
  2018-03-19 18:10 ` [tarantool-patches] [PATCH 1/4] Move space_is_system helper from CPP define guard Nikita Pettik
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Nikita Pettik @ 2018-03-19 18:10 UTC (permalink / raw)
  To: tarantool-patches; +Cc: Nikita Pettik

Branch: https://github.com/tarantool/tarantool/tree/np/gh-3122-remove-pgnoRoot
Issue: https://github.com/tarantool/tarantool/issues/3122

Before this patch, there was separate Tarantool specific cursor
alongside with "ordinary" SQLite one. However, now only Tarantool
spaces exist, so these two cursors can be merged into one.
Moreover, there is no need to hold in cursor space and index id,
since each appeal to them through cursor results in space lookup
via BOX API. To avoid this overhead, pointers to space and index
are stored in cursor (instead of ids) and DML executor is called
explicitly.

Nikita Pettik (4):
  Move space_is_system helper from CPP define guard
  sql: rework OP_Clear internals
  sql: remove struct ta_cursor and refactor BtCursor
  sql: replace pgnoRoot with struct space in BtCursor

 src/box/schema.h           |   6 +-
 src/box/sql.c              | 402 ++++++++++++++++++---------------------------
 src/box/sql/cursor.c       |  14 +-
 src/box/sql/cursor.h       |  16 +-
 src/box/sql/opcodes.c      |   2 +-
 src/box/sql/opcodes.h      |   2 +-
 src/box/sql/tarantoolInt.h |   4 +-
 src/box/sql/vdbe.c         |  63 +++----
 src/box/sql/vdbeInt.h      |   1 -
 9 files changed, 206 insertions(+), 304 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-03-20 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 18:10 [tarantool-patches] [PATCH 0/4] Remove space id and index id from cursor Nikita Pettik
2018-03-19 18:10 ` [tarantool-patches] [PATCH 1/4] Move space_is_system helper from CPP define guard Nikita Pettik
2018-03-19 18:10 ` [tarantool-patches] [PATCH 2/4] sql: rework OP_Clear internals Nikita Pettik
2018-03-20 10:54   ` [tarantool-patches] " Kirill Yukhin
2018-03-20 12:27     ` n.pettik
2018-03-19 18:10 ` [tarantool-patches] [PATCH 3/4] sql: remove struct ta_cursor and refactor BtCursor Nikita Pettik
2018-03-19 18:10 ` [tarantool-patches] [PATCH 4/4] sql: replace pgnoRoot with struct space in BtCursor Nikita Pettik
2018-03-20 10:58   ` [tarantool-patches] " Kirill Yukhin
2018-03-20 12:28     ` n.pettik

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