SSIS - using conditional split without losing row-order -


i'm processing flat file in ssis following possible record structure:

action_type   person_id     time_stamp -----------   ---------     ---------------   1 / 2       (9 digits)    (up millis)  

logic states have perform operation 1 each person before perform operation 2. also, "actions" can appear in file without limitations: couples of 1's , 2's, 1, 2, etc. each person.

now, flow is:

                                                      __(1)___> perform 1 on person (db) source --> sort operation --> conditional-split --|                                                      |__(2)___> perform 2 on person (db) 

everything worked ok, until noticed order of records coming out of conditional-split not preserved - i.e., when "duo of rows" of 1 , 2 same person enters split, might performed together, in parallel - leading race condition or constraint-violation in db (because table built upon assumption 1's performed before 2).

sorting data using timestamp can helpful, split mess order again, sorting i've done here.

any ideas how "sequentiallize" otuput of con-split? can perform flow if fully-sequential mode somehow?

thanks, harel


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -