Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2010
    Location
    Belgaum
    Posts
    9

    Snapshot example

    Hi Allessandro,
    I am trying to integrate my application with LS. as per requirement i need to do the following things
    1. Feed initial data from database to the client.
    2. Then feed the live data to the client.

    Doubts
    1. Is it good to use snapshot to feed initial data from database ? if yes please send me the steps how to do it / please send me some samples.
    2. Suggest if any better way to feed intial data from database.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    Yes, it is good to use the snapshot to feed the initial data from the database.

    Your Data Adapter will need to take care of getting the data from the DB and create both the initial snapshots and the updates.

    We don't currently provide ready-made Adapter examples that get data from a DB. As a starting point, you might find this post useful: http://www.lightstreamer.com/vb/show...p?t=231&page=2

  3. #3
    Member
    Join Date
    May 2010
    Location
    Belgaum
    Posts
    9

    Filter Data

    Allessandro.. Thanks for your reply..

    Still i am not getting how to create initial snapshot, so it can be available for all the clients, please elaborate..

    is it possible to filter the streaming data ?
    for example
    Client will have live news feed if user wanted to see only news containing word "India"
    client should only display the news items containing word "India"

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    I suggest you to take a look at the "General Concepts.pdf" document to know more about snapshots. In particular, see section 4.2.

    Furthermore, all of the provided demo examples show use the snapshot. So, choose a demo that somehow resembles your application and study its source code carefully.

    The kind of filtering you mentioned can be obtained by leveraging "selectors": see http://www.lightstreamer.com/vb/show...ight=selectors

 

 

Similar Threads

  1. Snapshot Processing
    By wwatts in forum Client APIs
    Replies: 3
    Last Post: October 2nd, 2012, 11:40 AM
  2. How to configure snapshot length?
    By LS_Developer in forum General
    Replies: 3
    Last Post: March 14th, 2012, 03:46 PM
  3. Snapshot Available
    By vaduganathan in forum Adapter APIs
    Replies: 8
    Last Post: December 16th, 2010, 04:15 PM
  4. Initial snapshot length
    By patilgkk in forum General
    Replies: 5
    Last Post: August 2nd, 2010, 10:04 AM
  5. Pre-Processor Snapshot vs DataAdapter Snapshot
    By sukhdev in forum Adapter APIs
    Replies: 3
    Last Post: August 1st, 2007, 09:44 AM

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 07:15 PM.