Results 1 to 3 of 3

Thread: Populate Data

  1. #1
    Member
    Join Date
    Apr 2009
    Location
    Kuwait
    Posts
    17

    Populate Data

    Hi All,

    Could anyone please provide some suggestions on how i can do an initial load from a database and after that each item should be updated from another data source. When the client connects for the first time the first data load should be from the database and after that each item should receive updates from the live streaming of the stock market.Thanks in advance

    Regards,
    George Eapen

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    988
    Both operations should be performed by your Data Adapter.
    Upon a "subscribe" call, both the lookup on the database and the request to the runtime data source should be initiated. Note that if you don't synchronize the two operations properly, you could miss some real-time event newer than the database value or receive some real-time event that is older than the database value.
    Then you should return from "subscribe" and wait for the data, to be forwarded to Lightstreamer Server in an asynchronous way.
    You should take care of forwarding the result from the database first, with the "isSnapshot" flag set as true, then all the real-time updates, with the "isSnapshot" flag set as false. Any real-time update that happened to come before the initial database result should be delayed.
    Note that the same operations might be needed after any further "unsubscribe" and "subscribe" calls for the same item.

    As Lightstreamer, we can't suggest you "how" you can do that.

  3. #3
    Member
    Join Date
    Apr 2009
    Location
    Kuwait
    Posts
    17
    Thank you very much..

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 01:25 PM.