Release hdf5 disk memory after table or node removal with pytables or pandas

前端 未结 1 1748
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 02:54

I\'m using HDFStore with pandas / pytables.

After removing a table or object, hdf5 file size remains unaffected. It seems this space is reused afterwards when additi

相关标签:
1条回答
  • 2021-01-13 03:20

    see here

    you need to ptrepack it, which rewrites the file.

    ptrepack --chunkshape=auto --propindexes --complevel=9 --complib=blosc in.h5 out.h5
    

    as an example (this will also compress the file).

    0 讨论(0)
提交回复
热议问题