• 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: ERXValidationException out of a Unique Constraint Violation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXValidationException out of a Unique Constraint Violation


  • Subject: Re: ERXValidationException out of a Unique Constraint Violation
  • From: Paul Stringer <email@hidden>
  • Date: Wed, 28 May 2008 12:17:36 +0200

I probably did have issues but I did get my original uniqueness check working 'good enough' but my biggest motivation was performance.
Originally I was checking for uniqueness in my validateKeys() by doing fetches to get the latest from the DB ( I can see folks wincing right now at the thought ). This was way before I understood just how often those validation methods get called and therefore how expensive that is to be doing.
Leaving it to the db at the very latest seems to be a very efficient and fairly elegant way of looking after this and things certainly now feel 'snappier'

Am 27.05.2008 um 20:05 schrieb Chuck Hill: The thing is, as I expect Paul has found out, is that this won't work reliably. Something else can add the value to the database between when you make this check and when the SQL transaction is committed. ... [...]
 _______________________________________________
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

  • Prev by Date: Re: Webobjects and WOLips images
  • Next by Date: Re: EditingContext-Sync [was: WOLongResponesePage Problem]
  • Previous by thread: Re: ERXValidationException out of a Unique Constraint Violation
  • Next by thread: EPGenerate column names with spaces
  • Index(es):
    • Date
    • Thread