hl7 - Mirth connect database to database duplicate -


i'm developing channel database reader database writer. both source , destination connectors running on sql server.

the problem setting interval in source 5 milliseconds, channel polls , write data every 5 milliseconds, if data has been polled or written before.

for example, if there 1 row in source database, channel keep inserting 1 row destination database every 5 milliseconds infinitely. results in infinite duplicate rows in destination database.

is there way avoid such situation , insert destination if data polled new?

you didn't post channels don't know queries like. didn't post db schema. in general need implement way keep track of records have been processed. 1 way adding column relevant tables has default value of 'new' when new records inserted. when have processed them (e.g. copied 1 db other), set status 'copied' via update statement. optionally have column timestamp indicates when record copied. (probably better) way in separate table keeps track of mutations in database. gives more flexibility in events record.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -