TileDB-Py icon indicating copy to clipboard operation
TileDB-Py copied to clipboard

Reading and writing multiple cells with one function call to avoid loops in Python

Open weidinger-c opened this issue 1 year ago • 1 comments

Is there a possibility to call a read and write operation to tileDB with mutliple cells at once (that are not a multi-index).

e.g. i have a 100x200 array in tileDB and would like to read all values for these indices (completely unconnected/not neighbored indices) dim_1=[1,5,8,99,55,30] dim_2=[0,15,155,103,105,6]

afterwards i want to alter these values and write them back to the tileDB

I dont want to iterate over each coordinate pair and would like to read and write them as batch. Is this possible? As far as I understand correctly, only the write operation can be called with a list of coordinates, but reading can be only done by slicing the tileDB array?

weidinger-c avatar Mar 05 '24 07:03 weidinger-c

Hi @weidinger-c,

As far as I understand correctly, only the write operation can be called with a list of coordinates, but reading can be only done by slicing the tileDB array?

Correct, currently we only support cross-product queries. (cross-linking https://github.com/TileDB-Inc/TileDB/issues/3076 as a +1 on that issue)

ihnorton avatar Mar 06 '24 03:03 ihnorton