On 2016-03-26 11:25, Stephen Russell wrote:
Michael please eliminate the steps I think are happening just dealing with
the jobs table.

1. insert job row
2. get pkyey back
3. update masterKeyValues table

I see 3 separate sql statements involving the first table. Every time you need reference to a PKey you require 200% more code and that is in need of
a refactor.

All I was suggesting is that your insert statement returns the bloody key in step one and you move onto inserting items in the same way. Sure you can iterate through all of the sub family per item one at a time before you
insert the second item.


Ah, gotcha.  Happy Easter my friend!

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to