Re: [Quickfix-developers] FileStore only stores outgoing messages?
Brought to you by:
orenmnero
From: <OM...@th...> - 2002-10-30 02:01:54
|
Well the store and the log have two different purposes. The store is designed as a repository for a sessions messages so it can resend them if requested. This is why the file format is very efficient for machines, but not so much for people. Incoming messages are not stored because they simply arn't necessary for this purpose, so extra IO overhead is reduced. This is also temporary storage, as everything will be wiped out as soon as it is no longer needed. The log is pretty clearly designed for people to figure out what is going on internally, and is therfore much nicer for people, and not so good for machines (funny how it always works out this way). I guess the question is, how do you plan on querying this information. If versatile queries are important to you, then you may want to explore using the MySQLLog. The trade off is performance of a database versus flat files. On the other hand, using the LIKE command in SQL, your queries can be sophisticated enough that you can filter on individual fields in the FIX messages. Otherwise it would be pretty easy to write a small app that can read in the incoming message log line by line and create FIX::Message objects. Then you can manipulate them however you want. There are third party utilities that will actually do this for you. The other alternative would be to implement your own Log by extending the interface and storing it in a format that better suits you. --oren |---------+-----------------------------------------------> | | "Chang Lin" <cl...@gl...>| | | Sent by: | | | qui...@li...ur| | | ceforge.net | | | | | | | | | 10/29/2002 05:52 PM | | | Please respond to clin | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: <qui...@li...> | | cc: | | Subject: [Quickfix-developers] FileStore only stores outgoing messages? | >----------------------------------------------------------------------------------------------| Hi there, In looking at the source code, I found out that FileStore class only saves outgoing messages in <.body> file. Is there any reason for not saving incoming messages other than conflicting MsgSeqNum? I am aware that FileLog class saves both incoming & outgoing messages, however FileStore class has a better interface for retrieving saved messages. I guess my question is: what is the best way to get a snapshot of all the incoming messages? I would appreciate if somebody helps me out here. Thanks in advance. --Chang |