Profile Picture

how to use FlushAll() of interface IDataStore ?

Posted By drzwz888 8 Years Ago
Message
Posted Monday March 16 2009
When will RE call FlushAll()? Any sample code? thx.
Posted Monday March 16 2009
For my MySQL implementation, I didn't find a need for any logic in the FlushAll(). I was able to handle cleanup in the DataAccessor's. However, you're still more than welcome to take a look if you want a sample.

Cheers,
Mark
Posted Monday March 16 2009
FlushAll is called in rare cases. When the historical data download is completed, when the bar data editor is closed and when the application is closed. It may or may not require specific action for your plugin. As Mark points out, it's not necessary for his database plugin (and I agree), but maybe in a cached situation like a file store when you're specifically managing the file handles, you may appreciate a flush all.

mark0419 (3/16/2009)
For my MySQL implementation, I didn't find a need for any logic in the FlushAll(). I was able to handle cleanup in the DataAccessor's. However, you're still more than welcome to take a look if you want a sample.

Cheers,
Mark
Posted Tuesday March 17 2009
It's mainly left over from the previous bar storage plugin interface, and may be removed in the future.


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems