Skip to content

0.10.0

Choose a tag to compare

@Totktonada Totktonada released this 01 Dec 12:47
· 262 commits to master since this release

Overview

The main feature of this release is support of automatic calculation of the
sharding key according to the database schema defined by tarantool/ddl
module. Example:

crud 0.9.0:

local tuple = {7, 'Dimitrion'}
local sharding_key = tuple[2]
local bucket_id = vshard.router.bucket_id_strcrc32(sharding_key)
return crud.insert('customers', tuple, {bucket_id = bucket_id})

crud 0.10.0 (when sharding_key definition is present):

local tuple = {7, 'Dimitrion'}
return crud.insert('customers', tuple)

Added

  • CRUD operations calculates bucket id automatically using sharding
    key specified with DDL schema or in _ddl_sharding_key space (#166).

    NOTE: CRUD methods delete(), get() and update() requires that sharding
    key must be a part of primary key. Otherwise specify bucket_id explicitly.

Fixed

  • Use tuple-merger backed select implementation on tarantool 2.10+ (it gives
    less pressure on Lua GC) (PR #227).