a new range delete API introduced
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- databases, documentation
Research direction
Start by locating the existing documentation for space or index methods and the C API reference, then add the described delete_range behavior, examples, availability limits, and box_delete_range signature. Done means both Lua and C interfaces are documented consistently, including empty-key bounds and the MemTX primary-key restriction.
Written by the indexing model from the issue text.
Description
Since: 3.9
The API allows to delete a range of keys from an index. A key range is
specified by begin_key + end_key pair. As a result of a call, key
range starting from begin_key lower bound up until end_key lower
bound (excluding) is deleted. Empty keys are special: if begin_key
is empty, tuples from the index beginning are deleted, if end_key
is empty, tuples up to the index end are deleted.
Examples:
box.space.test:delete_range(pk_begin_key, {})box.space.test.index.ts:delete_range({}, week_ago)
Only supported by MemTX and only for primary keys for now.
Available from Lua as [space|index]:delete_range(begin_key, end_key)
and from C API as box_delete_range with the following signature:
int
box_delete_range(uint32_t space_id, uint32_t index_id,
const char *begin_key, const char *begin_key_end,
const char *end_key, const char *end_key_end);
Requested by @mkostoevr in https://github.com/tarantool/tarantool/commit/a0d551db12a5e8887ffab610ceba772fe4959074.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tarantool/doc
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·
-
comp-query-execution fuzz
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121303 · 3 comments ·