Hi guys,
I am again in the world of confusion. I am working with a state engine where it retrieves data states of different persons from a database for a particular interval of time and i will modify them in my "C" program. The question is everytime i need the last state of that particular person when i am dealing the next Interval.
Note: The persons are Random i.e. there is no possibility that they come in a particular order in an interval
the possible solutions i thought are.
* Store the personName and State in the two dimensional array and search for it when ever i change the interval.(Dont KNOW HOW TO IMPLEMENT :-(
* Another idea is to load the last states into a Temporary table of DB2 database and query them..Which will kill lot of time because of the querying..I CAN DO THIS BUT POOR IMPLEMENTATION...
ANY SUGGESTIONS...
Thanks in advance
logic4fun
I am again in the world of confusion. I am working with a state engine where it retrieves data states of different persons from a database for a particular interval of time and i will modify them in my "C" program. The question is everytime i need the last state of that particular person when i am dealing the next Interval.
Note: The persons are Random i.e. there is no possibility that they come in a particular order in an interval
the possible solutions i thought are.
* Store the personName and State in the two dimensional array and search for it when ever i change the interval.(Dont KNOW HOW TO IMPLEMENT :-(
* Another idea is to load the last states into a Temporary table of DB2 database and query them..Which will kill lot of time because of the querying..I CAN DO THIS BUT POOR IMPLEMENTATION...
ANY SUGGESTIONS...
Thanks in advance
logic4fun