aspose file tools
The moose likes JDBC and the fly likes Delete records problem-Weblogic timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Delete records problem-Weblogic timeout" Watch "Delete records problem-Weblogic timeout" New topic
Author

Delete records problem-Weblogic timeout

amit taneja
Ranch Hand

Joined: Mar 14, 2003
Posts: 806
Hi,
I have a delete problem in my java application. In my application at one place it have to delete multiple rows from a table which has 5 child tables.
The format of the DELETE statement is as follows:
DELETE FROM RESOURCE WHERE RESOURCE_ID IN (list_of_resourceIds).

The list of list_of_resourceIds size is 200 in number. We are using JDBC to do this. The records in the related child tables are deleting.
But, its taking more time(more than 3 minutes) which is longer than our weblogic time out. So the server is timing out.
Sometimes it’s taking up to 8 minutes also.

also we are have checked that Validation of referential constraints in child table is not causing problem from our DBA TEAM

The interesting thing to note here is the same group delete works very fast(normal behavior) most of the times.
Only sometimes it’s taking more time and hence my weblogic is timing out.

I looked into the code but couldn’t found any problem there. Because most of the times it’s finishing less than a minute.

Please suggest me a solution for this problem

Thanks and Regards,<br />Amit Taneja
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

Amit,
Are you able to reproduce when it takes longer? Ideas are:
  • contention on the database
  • a transaction having a lock on the row you want to delete
  • a significantly larger number of child records to delete


  • [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
    Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: Delete records problem-Weblogic timeout
     
    Similar Threads
    Transaction timeout in JBOSS-4.2.3.GA
    Performance problem in jdbc
    browser time out problem.
    How to retrieve partial data in SQL Server ?
    Hibernate performance issues using huge databases