PDA

View Full Version : updation on primary key ?????


KULJEET
01-14-2004, 04:53 AM
the default property of block level of updation
is
Update Changed Columns Only property=NO
it means when u will update only one field in form.
and oracle will update all column of table
ALSO UPDATE PRIMARY KEY (OH NOOOOOOOOOOO)
IT MEANS IT WILL LOCK ON CHILD TABLES ;

IS THIS BEHAIVOUR IS OK IN LARGE APPLICATION???????????????
PLZ GUIDE

THANKS
kuljeet pal singh

Daniel Morgan
01-14-2004, 08:16 AM
KULJEET wrote: the default property of block level of updation is Update Changed Columns Only property=NO it means when u will update only one field in form. and oracle will update all column of table ALSO UPDATE PRIMARY KEY (OH NOOOOOOOOOOO) IT MEANS IT WILL LOCK ON CHILD TABLES ; IS THIS BEHAIVOUR IS OK IN LARGE APPLICATION??????????????? PLZ GUIDE THANKS kuljeet pal singh

This behavior is one that should ALWAYS be changed.

--
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

Neil Emery
01-15-2004, 08:19 AM
> > Update Changed Columns Only property=NO it means when u will update only one field in form. and oracle will update all column of table
This behavior is one that should ALWAYS be changed. -- Daniel Morgan

Dan,

Just Curious.

Why do you say this, as it contradicts the help in the forms
documentation?

i have considered this for a forms 6i OLTP(primarily) application
running over the web to
reduce network traffic (we dont use longs or images in the database)

Cheers,

Neil

Daniel Morgan
01-15-2004, 08:38 AM
Neil Emery wrote:
Update Changed Columns Only property=NOit means when u will update only one field in form.and oracle will update all column of tableThis behavior is one that should ALWAYS be changed.--Daniel Morgan Dan, Just Curious. Why do you say this, as it contradicts the help in the forms documentation? i have considered this for a forms 6i OLTP(primarily) application running over the web to reduce network traffic (we dont use longs or images in the database) Cheers, Neil

For just the reason the OP stated ... it updates the primary key.
Consider the implication with respect to locking and overhead. There is
no value from updating fields that were not modified ... and a very
heavy cost.

--
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service