Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weidinger-c opened this issue Mar 5, 2024 · 1 comment

Comments

@weidinger-c
Copy link

weidinger-c commented Mar 5, 2024

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 weidinger-c changed the title Reading and writing multiple cells at once to avoid loops in Python Reading and writing multiple cells with one function call to avoid loops in Python Mar 5, 2024
@ihnorton
Copy link
Member

ihnorton commented Mar 6, 2024

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 TileDB-Inc/TileDB#3076 as a +1 on that issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants