This looks like a common enough situation that people must have come across, but it's my first time across it
The situation is simple: I have a table which holds 'summary data', i.e.
field_name PRIMARY COUNTfield_name othersumsfield_name
I am reading in data from a stream. If the field_name exists, I must do an UPDATE. If not, it is a brand new entry and I need an INSERT. The question is, since this happens in a flow, what is the FASTEST way of making this decision. Take a count and UPDATE or INSERT
depending on ehether the COUNT(*) WHERE field_name=current_file_name is 0 or nonzero?
Thanks, svar
The situation is simple: I have a table which holds 'summary data', i.e.
field_name PRIMARY COUNTfield_name othersumsfield_name
I am reading in data from a stream. If the field_name exists, I must do an UPDATE. If not, it is a brand new entry and I need an INSERT. The question is, since this happens in a flow, what is the FASTEST way of making this decision. Take a count and UPDATE or INSERT
depending on ehether the COUNT(*) WHERE field_name=current_file_name is 0 or nonzero?
Thanks, svar