Skip to content

[2pt] new option "exclude_null=true/false" #1782

Closed
@TarantoolBot

Description

@TarantoolBot

Added new option for index part definition,
that allows index to skip tuples with null at this part.
By default the option is turned off.
When turned on, "is_nullable=true" option will be set automatically.
It can't be turned on for the primary key.
Option can be changed dynamically (in this case index is rebuilt).
Such index does not store filtered tuples at all,
so indexing can be done faster.
SQL: such index is skipped in select statements
unless explicitly specified.

exclude_null and is_nullable are connected, so
this table describes the result of combining them.

Exclude NULL/Nullable False True
False + +
True - * + **

* is not allowed
** Partial index
Requested by @mary3000 in tarantool/tarantool@17c9c03.

Metadata

Metadata

Assignees

Labels

featureA new functionalityreference[location] Tarantool manual, Reference part

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions