--- Log opened Tue Mar 13 00:00:20 2012 11:43 < conseo> mcallan: i will store the state in the database and do so atomically, right? serializing can corrupt files if the daemon is not shut down properly... 11:44 < conseo> i have build a tree with nodes to model a timeline with marked areas upon it, now i have to transfer that to a permanent storage... 12:00 < mcallan> conseo: files can be saved without corruption. but it's your choice (or dev's choice) where to store state for a harvester 12:05 < conseo> ok 12:12 < mcallan> maybe one trick is to move file after creation. another is to expect possible corruption (which really you must do anyway), and restore default state - very rare event 15:18 < conseo> mcallan: ok. would you serialize it to a file? 15:33 < conseo> i can ensure that writes are atomic to the db, i cannot write atomically to the file, except i rewrite it completely 16:35 < conseo> i think i will save the state for each forum in a separate table 18:02 < mcallan> conseo: i don't know the details so i can't recommend. if you want atomic storage in a file, see my last 18:03 < mcallan> to write to serialFile: 1) write to tempFile, 2) move tempFile to serialFile. this is atomic 19:17 < conseo> ok, i am serializing :-) 19:17 < conseo> but tomorrow 19:17 < conseo> n8 20:27 < mcallan> n8 c --- Log closed Wed Mar 14 00:00:36 2012