[Tarantool-patches] [PATCH] box: don't allow referenced collation to be dropped

Konstantin Osipov kostja.osipov at gmail.com
Tue Nov 12 00:50:02 MSK 2019


* Nikita Pettik <korablev at tarantool.org> [19/11/11 21:27]:
> This patch fixes one debt related to collations: collation is not allowed
> to be dropped until at least one space format or index references to it.
> Otherwise, we may face situation when collation doesn't exist anymore,
> but space has references to it (in-memory DD objects are not updated on
> collation alter). To achieve this we simply iterate over all spaces and
> check their formats and indexes. Despite it takes
> O(space_count * (field_count + index_count)) complexity, it is not a big
> deal: drop of collation is considered to be rare operation. So instead
> of maintaining reference counters we'd better once spend a bit more
> time during drop.

Shouldn't you be able to define json path index on 'collation'
option and use it for lookup instead?


-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list