From YiPs Wiki (i powered)

XMLService: XMLSERVICE Faster

(click to open)

Quick Page Table of Contents

Scanning…

Toolkit go faster

Goto Main Page
Goto Documents

Before you start …

This page is about running faster using persistent and private pooled connections workload balancing techniques. This is not a discussion about using QTEMP or *LDA in called RPG programs across browser clicks, that is a different topic entirely.

New version Zend Server include ZRAY

Server set up asks if Developer or Production.  If Developer, Z-Ray is on by default, but easy to turn off.  If Production, Z-Ray is off by default, but easy to turn on.  Z-Ray is recommended to be off in Production for performance and security reasons.  It can be set up in secured mode in production to only be used on pages deliberately accessed by a developer.

Toolkit connections performance

There are many ways to workload balance PHP Toolkit connections:

The following is a relative performance guideline:

Toolkit operations performance

Always use PgmCall API for speed including data area, job attributes, etc. (V6+ also call CL and OPM *PGM with PgmCall), most command functions will run significantly slower.

Toolkit plug size performance

Setting plug size to match your data size can offer increased performance.

Why a plug size at all?
DB2 connections are safe reliable transport for XML documents between client (PHP) and server (XMLSERVICE), but DB2 forces you to declare IN/OUT parameter size of any call procedure, XMLSERVICE download includes a few different stored procedure sizes (iPLUG4k .. iPLUG15M), so your script needs to choose the IN/OUT size that fits your data.


Author(s)

Tony “Ranger” Cairns - IBM i PHP / PASE

Retrieved from http://youngiprofessionals.com/wiki/index.php/XMLService/XMLSERVICEFaster
Page last modified on February 23, 2015, at 05:32 PM EST