Multi index writting in dense arrays

Hello,
I have a tiledb array, and given a set of rows, i would like to update said rows by assigning it a matrix:

index=[0,2,4]
with tiledb.open("dense_array1", 'w') as A:
    A[index,:] =  data[index,:]

but i get the error:

IndexError: invalid index type: <class 'list'>

And when trying to use multi_index, it get:

TypeError: 'MultiRangeIndexer' object does not support item assignment

I found in the documentation:

Dense Writes
A dense write is applicable to dense arrays and creates one or more dense fragments. In a dense write, the user provides:

The subarray to write into (it must be single-range).

So, is it correct my understanding that there is no straightforward way to do this? If not, is the best way to update a row would be to individually update each row?
Thnx!

Hi @yoshi, dense arrays only support contiguous range (slice) assignment. If you need to update discontiguous coordinates frequently, then a sparse array may be a better option.

the problem is that is a complete full dense array (in my case a feature matrix, where millions of samples have thousands of values), my intuition tells me that changing such dense array would come with giant performance penalties.