El dc 16 de 05 del 2007 a les 07:04 -0400, en/na David L va escriure:
> >If the script is started with the command line parameter of "bad", the 
> >table is generated in separate passes.  Each pass writes opens the file, 
> >writes 1000 records and closes the file.  Then if the script is run with 
> >the command line parameter of "read", the record is only found in the 
> >sequential search.

BTW, you don't need to manually call table.reIndex(), as the index in
the table will be automatically updated when you call table.flush() or
when you close the file.  In fact, not calling table.reIndex() is far
more efficient (only the newly added values in table are updated in
index).

Cheers,

-- 
Francesc Altet    |  Be careful about using the following code --
Carabos Coop. V.  |  I've only proven that it works, 
www.carabos.com   |  I haven't tested it. -- Donald Knuth


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to