Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2010
    Location
    London
    Posts
    9

    Need to use ADD command?

    Hi,

    I've found that an UPDATE command seems to act as an ADD command if a row is sent that doesn't already exist in Lightstreamer's internal table i.e. has a new key.

    Is this correct, or must the ADD command be used? If so, what are the side effects of just using the UPDATE command?

    Many Thanks,
    Steve

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    In general, the distincion between ADD and UPDATE commands might be inferred from the current state of the key,
    so we request that the Data Adapter specifies which of the two cases it is in
    only for clarity when reading the event sequence
    and in order to allow a crosscheck of the event sequence.

    Since we encountered many cases of inconsistent usage of the ADD or UPDATE flag,
    we decided to forgive wrong usage entirely and to just log error or warning messages.
    This policy will be adopted by the forthcoming 3.6 release of the Server.

    Currently, there are cases in which ADD and UPDATE behave differently, because, basically, an event with an inconsistent flag may be discarded (after suitable logging).
    This happens, for instance, for an UPDATE within a snapshot and for an ADD upon an existing key.
    On the other hand, an UPDATE upon a non-existing key (not within a snapshot) is already treated as an ADD, with no side effect.

  3. #3
    Member
    Join Date
    Jan 2010
    Location
    London
    Posts
    9
    Thanks for the clarification.

 

 

Similar Threads

  1. Possible missing EOS command?
    By yoadsn in forum General
    Replies: 3
    Last Post: December 22nd, 2011, 12:14 PM
  2. command mode latency
    By Pradeep Chahal in forum Adapter APIs
    Replies: 4
    Last Post: September 3rd, 2010, 12:08 PM
  3. command mode
    By Pradeep Chahal in forum Adapter APIs
    Replies: 1
    Last Post: February 24th, 2010, 09:52 AM
  4. command mode
    By Pradeep Chahal in forum Client APIs
    Replies: 2
    Last Post: February 15th, 2010, 10:20 AM
  5. COMMAND mode
    By atnemeth in forum Client APIs
    Replies: 3
    Last Post: May 19th, 2008, 10:19 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:13 PM.