A Tuesday 04 September 2007, Gabriel Beckers escrigué:
> Hi,
>
> A question about ptrepack: if one copies Tables and/or VLArrays from
> one file to a new one, does it calculate new chunkshapes on the basis
> of the dimensions of these objects in the original file?

Yes, it does.

> The thing is that I create pytables files, but do not always know
> beforehand how many rows I will have. So I make a guess in setting
> the expectedrows / expectedsizeinMB parameters when creating tables /
> arrays. If that guess turns out to be off-the-mark, can I then use
> ptrepack to create new and better files, or should I write a routine
> that recreates tables / arrays with the (now known) expectedrows /
> expectedsizeinMB parameters. (Off-the-mark here is something like: I
> said it would be 200000 rows, but it turns out to be 500000.)

Ptrepack (or a plain Leaf.copy() operation) should have in account the 
optimal sizes for copied leaves, so there is no need for you to 
recreate the tables/arrays manually.

Cheers,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to