From: Jacob B. <jac...@gm...> - 2012-07-13 19:09:14
|
Hello PyTables Discussion, Could you perhaps give me the best advice on read/write from a single file in PyTables? I currently have a parsing system that accepts a stream of data and consistently writes the data to pytables; however, on the other hand, I have an independent server that accepts requests for data and those queries might come from the current day (so for data in the same file). My first implementation was to have a set of current files stay in write mode and have an overall lock over these files for the current day, but (stupidly) I forgot that lock instances cannot be shared over separate processes, only threads. So could you give me any advice in this situation? I'm sure it has come up before. ;) Thanks, Jacob Bennett -- Jacob Bennett Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Class of 2014| ben...@mi... |