I think this will be a little tricky, since new and old records show up adjacent to one another. For example, an existing intake might have a new charge associated.
Given this, it seems like we might have to try and match each record first to see if we get an id back, then maintain two different queues - one for inserts and one for updates.
I think this will be a little tricky, since new and old records show up adjacent to one another. For example, an existing intake might have a new charge associated.
Given this, it seems like we might have to try and match each record first to see if we get an id back, then maintain two different queues - one for
insert
s and one forupdate
s.