SmartQuant Discussion
http://www.smartquant.com/forums/

How to restore the database when the power is cut
http://www.smartquant.com/forums/viewtopic.php?f=60&t=10545
Page 1 of 1

Author:  jchen [ Tue Jul 09, 2013 7:03 pm ]
Post subject:  How to restore the database when the power is cut

Hi,

What should I do to restore the database when the power is cut by accident?

In my strategy, I am recording 1 min data, but I didn't use DataManager.flush() to save data to disk.

After I restore the power, I found that not only today's data is missing, but also I can't retrieve today's historical data from IQfeed. In downloading historical data window, for the first ticker, message says:

09/07/2013 11:10:31 Provider: IQFeed
Id: -1
Code: -1
Message: [OnReceive] *error* <History>: The given key was not present in the dictionary.


Is the database broken? What should I do to prevent it happens again?

Thank you very much in advance.


Regards,

JC

Author:  douv [ Fri Dec 20, 2013 1:09 pm ]
Post subject:  Re: How to restore the database when the power is cut

why not use the build in Recorder in OpenQuant?

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/