Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Queued or threaded MQPUTs 1

Status
Not open for further replies.

gmold

Programmer
Feb 26, 2003
1
AU
Hi,

If I have 10 messages to be put onto the same MQ Queue, via MQPUT, is it faster to -

(a) Create 1 thread and within it issue 10 MQPUT's one after the other; OR

(b) Create 10 threads and within each issue 1 MQPUT.

Anyone with experience in this area? Any recommendations would be appreciated. I'm a newbie at MQ Series.

Thanks,
Greg

 
It is better, where possible, to do 10 MQPUTs. The rationale is that MQOPEN and MQCLOSE are fairly slow compared with MQPUT or MQGET. If you use 10 threads, you will need 10 MQOPENs and 10 MQCLOSEs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top