On 2017-10-30 09:28, Stephen Russell wrote:
From a design POV why would you want to give up control and have the
backend responsible for something that takes a reply of, to provide you
data necessary for the next set of inserts?
PKMasterID you generate via a GUID.
If that same key is required in 2,3,4+ other tables as FKMasterID, why
not
generate the pointer and then submit ALL the inserts at once within a
transaction on the server? Or do you have procedures on the server
that do
your insert and all you need to do is pass the params for them?
That's what I liked about the varchar(40) GUID keys I generated in the
app--I could do all that and then save the whole series of datasets
(parent/child/grandchild) with one transaction instead of using
auto-increment integer keys. However, that comes at a cost of course --
larger indexes, arguably less efficient.
Like everything, there's trade-offs with each path.
_______________________________________________
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.