-
January 19th, 2010, 01:30 PM
#1
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
-
January 20th, 2010, 10:44 AM
#2
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.
-
February 4th, 2010, 11:24 AM
#3
Thanks for the clarification.
Similar Threads
-
By yoadsn in forum General
Replies: 3
Last Post: December 22nd, 2011, 12:14 PM
-
By Pradeep Chahal in forum Adapter SDKs
Replies: 4
Last Post: September 3rd, 2010, 12:08 PM
-
By Pradeep Chahal in forum Adapter SDKs
Replies: 1
Last Post: February 24th, 2010, 09:52 AM
-
By Pradeep Chahal in forum Client SDKs
Replies: 2
Last Post: February 15th, 2010, 10:20 AM
-
By atnemeth in forum Client SDKs
Replies: 3
Last Post: May 19th, 2008, 10:19 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:32 AM.
Bookmarks