Open felixcremer opened 1 month ago
Probably need to do modify(cache, dimarray)
first to use chunk caching in DiskArrays. It should help a bit. But otherwise I'm not sure how we can get Tables.jl sources to read in chunk order... like a csv has to be written sequentially. You could also use the RechunkedDiskArray to force rows to be contiguous. We should put this in the DimensionalDataDiskArraysExt
whenever we add it.
Tables.jl doesn't use iteration it uses indexing so the iterate
optimisations don't help.
I can't write a diskarray backed DimArray to CSV but if I load it to disk before hand it works. I am not sure, whether this should rather be a DiskArray or YAXArray issue, I can try to reduce the example further down to an MWE at the end of the week. jena is a selection of a diskbased YAXArray for one single pixel. I can write the data if I use readcubedata from YAXArrays beforehand to load the cube to disk. If I use DimTable explicitely, the writing seems to work, but is very slow when the data is still a DiskArray.