From: Norbert N. <No...@ne...> - 2004-12-14 18:04:57
|
Hi there, I understand, that pytables buffers data until flush() is called. I also understand, that this buffer may also be flushed automatically when it is full. Would it be possible to prohibit this automatic flushing? The idea behind this is, that I would like to have the h5-file intact at least with a good probability if the program is interrupted or breaks down. If it would be possible to defer all writing actions to an explicit call of flush() (or the closing of the file), I could simply write to pytables in some random order, and then just call flush() when the data is in a coherent state. Even though this will not give us real atomic operations, it would still be good enough for many applications that continuously write to a file. For performance reasons, this should probably be an option. It should also be clear which operations are buffered at all. Greetings, Norbert -- _________________________________________Norbert Nemec Bernhardstr. 2 ... D-93053 Regensburg Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199 eMail: <No...@Ne...> |