We have a table with which is maintained by two or more nodes. The ids are an incrementing number but since we have two or more nodes inserting the values of those ids might not always be inserted in the correct order. It could be like this.
UpdatedTime, id
10:00, 1
10:00, 2
10:01, 101
10:01, 102
10:03, 3
When we use the kafka connect jdbc source connector with mode:timestamp+incrementing on this table. Is that a problem?
The sql the kafka connector uses is this.
SELECT * FROM "public"."thetable"
WHERE "public"."thetable"."updated" < ?
AND (("public"."thetable"."updated" = ? AND "public"."thetable"."id" > ?)
OR "public"."thetable"."updated" > ?)
ORDER BY "public"."thetable"."updated","public"."thetable"."id" ASC