On 11/1/12 9:02 PM, Ben Elliston wrote:
> Hi all.
>
> I have a very large CArray that I need to extend (of course, you can't
> extend a CArray). I want to do this in the least operation intensive
> way I can.
>
> What's the easiest way? Create a new CArray of the right size, copy
> the data into it and delete the old one?
Yes, this is the best approach.
> I understand that deleting
> the old one will not reclaim any space in the database -- is that
> right?
Yes, that's correct. For claiming the old space you should 'repack' the
file either using ptrepack PyTable's own tool or the HDF5 native tool
called h5repack.
HTH,
--
Francesc Alted
|