0.10.0
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_keyspace (#166).NOTE: CRUD methods delete(), get() and update() requires that sharding
key must be a part of primary key. Otherwise specifybucket_idexplicitly.
Fixed
- Use tuple-merger backed select implementation on tarantool 2.10+ (it gives
less pressure on Lua GC) (PR #227).