Results 1 to 2 of 2
  1. #1

    not to MERGE some fields

    Hello,

    We're changing our real-time quote streaming to Lightstreamer.

    My problem:
    Some fields that belong to this minute can't be merged with same fields of the next minute.
    When the minute changes, current state of these fields must be delivered to clients.

    Any idea of how to do this ?

    Is there any kind of control over the MERGE operation ?

    What is the preprocessor ? Are there any docs about it ?

    We're afraid of changing from MERGE to DISTINCT mode and fall into bandwidth problems.

    thanks in advance.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    541
    Hi rperseguini,

    If I understood your scenario correctly you could switch to the COMMAND subscription mode.
    The trick to adopt in your Data Adapter is to consider as "key" field for COMMAND mode updates the 1-minute slot. Please consider that in COMMAND mode updates for the same key are handled as MERGE.
    Furthermore your Data Adapter should take care of push an ADD command when the new 1-minute slot starts and also to consider the maximum number of slots to manage with the possibility of deleting the oldest ones.

    For demo example of COMMAND mode please refer to this: https://demos.lightstreamer.com/PortfolioDemo_Basic/

    I don't think the Preprocessor is useful in your case, however you can find the documentation in section 3.4 of General Concepts documentation.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. Fields not included in some updates
    By Fabrizio Patrício in forum Client APIs
    Replies: 2
    Last Post: January 15th, 2015, 03:19 PM
  2. Replies: 3
    Last Post: July 22nd, 2013, 10:54 AM
  3. Difference between DISTINCT and MERGE mode?
    By hungtt in forum General
    Replies: 1
    Last Post: January 4th, 2011, 01:07 PM
  4. Replies: 7
    Last Post: June 7th, 2010, 10:38 AM
  5. Unexpected snapshot event for MERGE
    By churrusco in forum General
    Replies: 2
    Last Post: May 4th, 2007, 04:19 PM

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 03:26 AM.