• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Relationship across model boundaries failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relationship across model boundaries failing


  • Subject: Re: Relationship across model boundaries failing
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 30 May 2008 15:55:24 -0700


On May 30, 2008, at 3:35 PM, Alan Ward wrote:


OK, so it sounds like the update is fine but how many SQL statements occur when you try to insert a new Person?

Should be the same, flattened or not flattened:

1. Fetch the Person
2. Fetch the PK for each company to create an array of company faults*
3. Fetch the new PK
4. Write the new Person
5. Write the new join table row

* it would be good if this could be eliminated

Pierre?  Hello?  Feeling up to a challenge?  :-P


Chuck



On May 30, 2008, at 4:28 PM, Mike Schrag wrote:

No, I meant an insert or update that didn't modify the relationship. It sounds like your test shows my recollection to be wrong
with recent WO versions. I'm pretty sure it was true at some point in the past though.

Hang on a minute.... what was flattened in your model?
Company
	id
	name
	>> people (flattened)

Person
	id
	name
	>> companies  (flattened)

(CompanyPerson)
	companyID
	personID

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Relationship across model boundaries failing (From: Juergen Lorenz Simon <email@hidden>)
 >Fwd: Relationship across model boundaries failing (From: "Gennady Kushnir" <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Guido Neitzer <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Guido Neitzer <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)

  • Prev by Date: Re: Relationship across model boundaries failing
  • Next by Date: Re: Relationship across model boundaries failing
  • Previous by thread: Re: Relationship across model boundaries failing
  • Next by thread: Re: Relationship across model boundaries failing
  • Index(es):
    • Date
    • Thread