Let's say I want to create a Book. A book as a CMR link to an editor and to an author 
for instance. I receive the following XML

<create-book>
  John Smith
  ABC
   [... other non CMR links]
</create-book>

The session bean that parses this XML validates the fact the author and the editor 
exists (that way I prevent a create exception and can give an approrpiate response to 
the user). So what Id do is:

authorHome.findByPrimaryKey("John Smith");
editorHome.findByPrimaryKey("ABC");

My problem is that if I create 10.000 books from Jonh smith edited by ABC, jboss will 
still do 

select from author where id = 'John Smith';
select fropm editor where id ="ABC";

Is it normal knowing that those haven't changed and I am using commit option A? What 
should I do to avoid those lookups?

Regards,

Stephane

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826856#3826856";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826856>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to