please add index by lua function

Bug #1029816 reported by UNera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
In Progress
Medium
Roman Tsisyk

Bug Description

Now taratnool builds index by field value.

It would be nice to have indexes by lua function.

example:

function tlen(tuple)
  return #tuple
end

space[1].enabled = 1
space[1].index[0].type = "TREE"
space[1].index[0].unique = 0
space[1].index[0].index_function.name = tlen
space[1].index[0].index_function.type = NUM # return value

so tarantool should call 'tlen(tuple)' for each tuple while it is building index and while it is doing insert/update operation.

so using the index (in example) we can find largest tuples

Changed in tarantool:
importance: Undecided → Wishlist
UNera (unera)
description: updated
description: updated
Kostja Osipov (kostja)
Changed in tarantool:
assignee: nobody → UNera (unera)
Revision history for this message
Roman Tsisyk (rtsisyk) wrote :

=> system-spaces-v2

Changed in tarantool:
assignee: UNera (unera) → Roman Tsisyk (rtsisyk)
importance: Wishlist → Medium
milestone: none → 1.5.1
status: New → In Progress
Kostja Osipov (kostja)
Changed in tarantool:
milestone: 1.5.1 → 1.5.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.