Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Locking on multiple simultaneous inserts

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am reading messages from a JMS queue. Each message from the queue translates to an insert on a table that has no index and no PK.

My problem is that the inserts are getting serialized resulting in messages being consumed very slowly. (While messages are put into the queue much faster)

So are inserts on a table always serialized or under certain conditions? What?

Would appreciate any insight here!
 
author & internet detective
Posts: 40913
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Onkar,
What are your settings? In particular, the transactions settings and the number of current messages being taken off the queue.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree that the MDB will pick a message from the Queue Asynchronously. Use data source for better performance

And the important thing here for Performance

1. Try to develop a PL SQL package and insert messages Using a bulk insert. And the PL SQL package using Callable stmt.
2. Or use Execute Update.

If this not suits your requirement. Explain more detail about your requirements.
 
Oscar Johansson
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We managed a huge boost in performance by using multiple partitions for our target table.

I agree there are other things that can be done for further improvements. But the one above required almost no effort on our part other than finding out that doing that would improve things.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic