Re: [Pytables-users] Best way to store data that allows inserts/deletes

2012-03-21 Thread Anthony Scopatz
On the other hand Tom, If you know that you will be doing < N insertions in the future, you can always pre-allocate a Table / Array that is of size N and pre-loaded with null values. You can then 'insert' by over-writing the nth row. Furthermore you can always append size N chunks whenever. For

Re: [Pytables-users] Best way to store data that allows inserts/deletes

2012-03-21 Thread Francesc Alted
On Mar 21, 2012, at 7:08 AM, Tom Diethe wrote: >>> I'm writing a wrapper for sparse matrices (CSR format) and therefore >>> need to store three vectors and 3 scalars: >>> >>> - data(float64 vector) >>> - indices(int32 vector) >>> - indptr (int32 vector) >>> >>> - nrows (int

Re: [Pytables-users] Best way to store data that allows inserts/deletes

2012-03-21 Thread Tom Diethe
>> I'm writing a wrapper for sparse matrices (CSR format) and therefore >> need to store three vectors and 3 scalars: >> >> - data        (float64 vector) >> - indices    (int32 vector) >> - indptr      (int32 vector) >> >> - nrows      (int32 scalar) >> - ncols       (int32 scalar) >> - nnz