Article View: php.db
Article #1[PHP-DB] Re: Remote ODBC Connection to IBMi Db2/iAccess Very Slow to Fetch Results
From: Zachary Menzies
Date: Wed, 20 Mar 2024 20:12
Date: Wed, 20 Mar 2024 20:12
415 lines
32782 bytes
32782 bytes
--_000_DM6PR04MB3980402B00B081F51E7D156FDB332DM6PR04MB3980namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello again,
It looks like the most recent PHP version (8.3.4) fixed this slow result fe=
tching problem,
so long as the SQL_CUR_USE_ODBC option is passed to the odbc_connect() func=
tion.
I was going to post a bug report, when I tested it one last time, and lo-an=
d-behold,
the fetching performance is back to normal.
So problem solved. Thank you, PHP developers.
Zachary
________________________________
From: Zachary Menzies <zachary@maplelane.ag>
Sent: March 12, 2024 9:54 AM
To: php-db@lists.php.net <php-db@lists.php.net>
Subject: Re: Remote ODBC Connection to IBMi Db2/iAccess Very Slow to Fetch =
Results
I found the options for "odbc.default_cursortype" here: https://www.php.net=
/manual/en/odbc.configuration.php (not sure why I didn't see it before). Ho=
wever, none of the options (0 to 3) made any difference.
Zachary
________________________________
From: Zachary Menzies <zachary@maplelane.ag>
Sent: March 12, 2024 8:36 AM
To: php-db@lists.php.net <php-db@lists.php.net>
Subject: [PHP-DB] Remote ODBC Connection to IBMi Db2/iAccess Very Slow to F=
etch Results
Hello,
At work, we have an IBM Db2 database. Until recently, it lived within our l=
ocal network,
but has since been moved off-site (to the cloud). We connect to it using an=
iSeries Access
ODBC driver. For communication, I typically use PHP's ODBC interface (somet=
imes other
languages).
When the database was local, everything seemed to run smoothly; but now tha=
t it is off-site,
fetching results from SELECT queries is very slow (12 seconds for 100 rows)=
. I thought at first
it was an issue on our host's side (or even our network), but all tests ind=
icated otherwise. A
proof of this is that I made a C program to run the same query (using the s=
ame driver), and it
fetched the results within milliseconds after the query completed.
I should perhaps point out that running the queries is fast, it's only fetc=
hing the result rows
that is slow.
The only comments I could find that mentioned a similar issue was for peopl=
e that were using
a Db2 driver: if they passed the "SQL_CUR_USE_ODBC" option to the "odbc_con=
nect" function,
then their result collection was sped up. I tried that, but it made no diff=
erence (perhaps because
I'm not using a Db2 driver, per se, but an iAccess driver).
I'm not so sure that this is an error with PHP so much as a setting that ne=
eds to be tweaked;
but I can't seem to find what setting that might be. I can see there is a d=
efault_cursortype option
in the php.ini file, but I don't know what options are available or how to =
properly set the value.
I also tried using PDO and ADOdb, but both resulted in the same slowness (I=
'm guessing because
they just wrap the ODBC interface).
So, as I my first choice is not to re-write a bunch of scripts into C, I wa=
s wondering if any of you might
know (or have ideas as to) what the issue might be.
The PHP versions I have been using are 8.3.2 and 8.3.3, and I've tried the =
test on both Windows and
Linux.
Thanks,
Zachary
--_000_DM6PR04MB3980402B00B081F51E7D156FDB332DM6PR04MB3980namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Hello again,</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
It looks like the most recent PHP version (8.3.4) fixed this slow result fe=
tching problem,</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif;">
<span style=3D"font-size: 12pt; color: rgb(0, 0, 0);">so long as the </span=
><span style=3D"font-size: 16px; color: rgb(0, 0, 0); background-color: rgb=
(255, 255, 255);">SQL_CUR_USE_ODBC option is passed to the odbc_connect() f=
unction.</span></div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);">I was going to post a=
bug report, when I tested it one last time, and lo-and-behold,</span></div=
>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);">the fetching performa=
nce is back to normal.</span></div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);">So problem solved. Th=
ank you, PHP developers.</span></div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; c=
olor: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);">Zachary</span></div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Zachary Menzies <z=
achary@maplelane.ag><br>
<b>Sent:</b> March 12, 2024 9:54 AM<br>
<b>To:</b> php-db@lists.php.net <php-db@lists.php.net><br>
<b>Subject:</b> Re: Remote ODBC Connection to IBMi Db2/iAccess Very Slow to=
Fetch Results</font>
<div> </div>
</div>
<style type=3D"text/css" style=3D"display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div class=3D"x_elementToProof"><span style=3D"font-family:Aptos,Aptos_Embe=
ddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; =
color:rgb(0,0,0)">I found the options for "odbc.default_cursortype&quo=
t; here:
<a href=3D"https://www.php.net/manual/en/odbc.configuration.php" id=3D"LPln=
k381981">https://www.php.net/manual/en/odbc.configuration.php</a> (not=
sure why I didn't see it before). However, none of the options (0 to 3) ma=
de any difference.</span></div>
<div class=3D"x_elementToProof"><span style=3D"font-family:Aptos,Aptos_Embe=
ddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; =
color:rgb(0,0,0)"><br>
</span></div>
<div class=3D"x_elementToProof"><span style=3D"font-family:Aptos,Aptos_Embe=
ddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; =
color:rgb(0,0,0)">Zachary</span></div>
<div id=3D"x_appendonsend"></div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Zachary Menzies <=
;zachary@maplelane.ag><br>
<b>Sent:</b> March 12, 2024 8:36 AM<br>
<b>To:</b> php-db@lists.php.net <php-db@lists.php.net><br>
<b>Subject:</b> [PHP-DB] Remote ODBC Connection to IBMi Db2/iAccess Very Sl=
ow to Fetch Results</font>
<div> </div>
</div>
<style type=3D"text/css" style=3D"display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir=3D"ltr"><span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_=
MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0=
)">Hello,</span>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">At work, we ha=
ve an IBM Db2 database. Until recently, it lived within our local network,<=
/span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">but has since =
been moved off-site (to the cloud). We connect to it using an iSeries Acces=
s</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">ODBC driver. F=
or communication, I typically use PHP's ODBC interface (sometimes other</sp=
an></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">languages).</s=
pan></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">When the datab=
ase was local, everything seemed to run smoothly; but now that it is off-si=
te,</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">fetching resul=
ts from SELECT queries is very slow (12 seconds for 100 rows). I thought at=
first</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">it was an issu=
e on our host's side (or even our network), but all tests indicated otherwi=
se. A</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">proof of this =
is that I made a C program to run the same query (using the same driver), a=
nd it</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">fetched the re=
sults within milliseconds after the query completed.</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">I should perha=
ps point out that running the queries is fast, it's only fetching the resul=
t rows</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">that is slow.<=
/span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">The only comme=
nts I could find that mentioned a similar issue was for people that were us=
ing</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">a Db2 driver: =
if they passed the "SQL_CUR_USE_ODBC" option to the "odbc_co=
nnect" function,</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">then their res=
ult collection was sped up. I tried that, but it made no difference (perhap=
s because</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">I'm not using =
a Db2 driver, per se, but an iAccess driver).</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">I'm not so sur=
e that this is an error with PHP so much as a setting that needs to be twea=
ked;</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">but I can't se=
em to find what setting that might be. I can see there is a default_cursort=
ype option</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">in the php.ini=
file, but I don't know what options are available or how to properly set t=
he value.</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">I also tried u=
sing PDO and ADOdb, but both resulted in the same slowness (I'm guessing be=
cause</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">they just wrap=
the ODBC interface).</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">So, as I my fi=
rst choice is not to re-write a bunch of scripts into C, I was wondering if=
any of you might</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">know (or have =
ideas as to) what the issue might be.</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">The PHP versio=
ns I have been using are 8.3.2 and 8.3.3, and I've tried the test on both W=
indows and</span></div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">Linux.</span><=
/div>
<div class=3D"x_x_elementToProof" style=3D"text-align:left; text-indent:0px=
; background-color:rgb(255,255,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"><br>
</span></div>
<div style=3D"text-align:left; text-indent:0px; background-color:rgb(255,25=
5,255); margin:0px">
<span style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cal=
ibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">Thanks,</span>=
</div>
<div style=3D"background-color:rgb(255,255,255); margin:0px">
<div style=3D"background-color:rgb(255,255,255); margin:0px">
<p class=3D"x_x_elementToProof" style=3D"background-color:rgb(255,255,255);=
margin:0px; font-family:Calibri,sans-serif; font-size:11pt">
<span style=3D"font-size:12pt; color:rgb(0,0,0)">Zachary</span></p>
</div>
</div>
<div style=3D"background-color:rgb(255,255,255)"></div>
</div>
</div>
</body>
</html>
--_000_DM6PR04MB3980402B00B081F51E7D156FDB332DM6PR04MB3980namp_--
Technical Details
Message-ID:
<php.db-49224@news.php.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!news.php.netReferences:
References: <DM6PR04MB3980401325478C9B66C2A007DB2B2@DM6PR04MB3980.namprd04.prod.outlook.com> <DM6PR04MB3980B0EFB8E4F2BC258F3446DB2B2@DM6PR04MB3980.namprd04.prod.outlook.com>Show Full Headers
Complete Article Headers
Message-ID: <php.db-49224@news.php.net> Subject: [PHP-DB] Re: Remote ODBC Connection to IBMi Db2/iAccess Very Slow to Fetch Results Date: Wed, 20 Mar 2024 20:12:55 +0000 From: zachary@maplelane.ag (Zachary Menzies) References: References: <DM6PR04MB3980401325478C9B66C2A007DB2B2@DM6PR04MB3980.namprd04.prod.outlook.com> <DM6PR04MB3980B0EFB8E4F2BC258F3446DB2B2@DM6PR04MB3980.namprd04.prod.outlook.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!news.php.net Newsgroups: php.db X-Original-To: php-db@lists.php.net Delivered-To: php-db@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 2C2BC1AD8F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1710965604; bh=64yLgK+xxu+6PeugQrXPAiU8Ly15Gs+0lNY3kRSJROE=; h=From:To:Subject:Date:References:In-Reply-To:From; b=Sd2wEW75f1yItZeh4Tkb+nKStC/8+suHKOittD3g3JJ0G0KyLqUOQjM+esYorGo8B 6ECQrHsVY93CRteHHCa5I7ayf7jWr+ctVYVsmpWuBm2/AYVILtMHmDGiQNt07IGQ71 8voKvny6V7vV3nuTOKisMagStdUPrm6iNdQMOt9pqQVRLhvzHst3+6O2cv5wm/3tpr Xcl5YfCKpn8ldHf2EhfIyZ8wIl7Qs/G8iQ3JHBEDnk8dQYzsJC3AYuXtYCz7d4Vb38 r4fMXu0uXzTcPERqrmyVjLKCHw/9aETk8ULetI+6lJ9qHDbpEQFtbD/tY5hen7KdKy JHaFo+qxa/9Yg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D74BE180699 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Status: No, score=0.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, HTML_MESSAGE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: <zachary@maplelane.ag> Received: from repost01.tmes.trendmicro.com (repost01.tmes.trendmicro.com [18.208.22.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS Received: from 104.47.55.100_.trendmicro.com (unknown [192.168.206.186]) by repost01.tmes.trendmicro.com (Postfix) with SMTP id B8F9B100026C8 X-TM-MAIL-RECEIVED-TIME: 1710965580.982000 X-TM-MAIL-UUID: f60e307d-bf20-409a-85d8-d705bb678888 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (unknown [104.47.55.100]) by repre01.tmes.trendmicro.com (Trend Micro Email Security) with ESMTPS id EFE161000056A ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lo7MJhmRed89JVLm1ZZs6oeC1bfOSSY77aIqB+RCWrMYzdF03SFhAjOjIo/B9mgi4njWIAzyg6Fh6Bvqknc6L/znQFoxgMykcFFmS172+7hooTw9Mdwj5R6GvDjaNN5R1YfPoyBevVvQrsvQGSwWWbW4xKQPkju1buTKJ7dYzS/dMOL/NF96w9QoTIeg2qVfLOLfDf6wNp8S4oI4Ta5jfSrKgmFleNHYuYZVEOC+93Ygkp1Ffo7vkwQ61//y8pdTTV+5UjZP8IyJ54w1t2ypx29zLFOO54yNjBWCukm7bQ+BKiAqpFLbpwTFVhP3noGsdMyKaCAw3l6HSqeS5KFm2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ROxG3J42U44Ytgzk13XNiDjw1XUKOZLlkQfniOEIgEY=; b=mtpvesiyiXbm9cGzc0zfv3sgNk8JL/1zwN6ReYt8nDDKHdTztWtdM1cPAjRSIr+agD0+YqOBblou9aqODiK9SD+nhsunKhjNC50kfo/hHzXv8FBxYkSCwuSBIvs4YgrBckz8FVFIrudGU5jcFZBYH6y2L1f8R20o9NgyRjcIIiAwG3ThpgSMyq8fv8i4fyvM502yT+kMfwuiYGt2nTd2JJQSG98H0RdHZWwfH4vHvJSLUEf+lOAtdouGNnXACq+6fsLplyuRrW9bBLFSCuswMzdNdPrbyeONO0yK/yGtLs5MIZTkBKuCfQDbkYL3BvUy97Yykj09Ur5KpjkkBjACPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=maplelane.ag; dmarc=pass action=none header.from=maplelane.ag; dkim=pass header.d=maplelane.ag; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maplelane.ag; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ROxG3J42U44Ytgzk13XNiDjw1XUKOZLlkQfniOEIgEY=; b=Y9KO3j8gZLhofcwtRq3FhjRNCtXOstfW9FZtApmygeWGf5StnQG5ptBIzpo7ai8D4Gmrl/4RNb4KBfA5CnGRA2LlFf3HSWAh45Rs/7ugSw5/S4oVfljnDpPRyrkVUbJh39QUzusosUbQ9vGQThJMTa5kK6jBJIAWIcnEz8hZhEs= Received: from DM6PR04MB3980.namprd04.prod.outlook.com (2603:10b6:5:ae::25) by PH0PR04MB7560.namprd04.prod.outlook.com (2603:10b6:510:4e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id Received: from DM6PR04MB3980.namprd04.prod.outlook.com ([fe80::bac:a7ff:f3d:d7e3]) by DM6PR04MB3980.namprd04.prod.outlook.com ([fe80::bac:a7ff:f3d:d7e3%7]) with mapi id 15.20.7386.025; Wed, 20 Mar 2024 To: "php-db@lists.php.net" <php-db@lists.php.net> Thread-Topic: Remote ODBC Connection to IBMi Db2/iAccess Very Slow to Fetch Results Thread-Index: AQHadHdNL3wnDf3ZkUukLvW7E7oKCLE0H6IxgAz8M6w= In-Reply-To: In-Reply-To: <DM6PR04MB3980B0EFB8E4F2BC258F3446DB2B2@DM6PR04MB3980.namprd04.prod.outlook.com> Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MS-TNEF-Correlator: Msip_labels: msip_labels: Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=maplelane.ag; X-ms-publictraffictype: Email X-ms-traffictypediagnostic: DM6PR04MB3980:EE_|PH0PR04MB7560:EE_ X-ms-office365-filtering-correlation-id: b0e03a01-caec-405e-0023-08dc491a2159 X-microsoft-antispam: BCL:0; X-microsoft-antispam-message-info: x-microsoft-antispam-message-info: ZT/pg1JDHv+qgwRiN1bu1tAa4ltDr8iEn69L74+I502KgQAx1lkRDY0HtURmWjPBZyNb3nOF4KY2rzcxgDBJKsJVMFgQXxM9Tive+3awT9LPqr+/+Mmf8LymnAeeStFYQSke7fW2Beejl6OwSJMRJa65PK7rPDQiCe/Qr4asuItlgV+dz4b1+GXuHezuHYm1phOxy/2hrnRTpxt/TXTxGynY0OYfKW0P3UqfoGmEduRQsizet9xL0darJEpMJq4R7TrT4q5C1rRTPzXXymz3FB4rSPe0gRc/6gCxSIlc3wr0luPcTBYm2tZN967ANETC00q7tX8QIwKdkxyL8yapm7GHdYi/YEjiaTQ1c7GbPySujqKGAyNguckr/kIs9JTS6TOa9Cdc56k0+YA8ZZi2o7ekYdfsDUPptNA50ntcgnHI+YxsNg6jrwdTk741n8zrmTOtZ4iQ9TOZVNYhKuK/l8w1LbBgZCtwrbjZ+uGMjRZpytCitPy4nwwzrjouGJuw9v9kMd115ktqkRWyxTsp3lVGp5mJPL2HNMW0/tnYCBg0Sz4KCcEE6vktoC7Nvy/QJT8GH7aUYs4u5HwUzKGjULsuZ2mT3FIKE92PRjfe7/uMyrbzx1nSt/sN+/+fzvEGet8nTRHDXSyGuBLGZdXvLEJM1MQsL88v/H1aMDm8F1w= X-forefront-antispam-report: x-forefront-antispam-report: X-ms-exchange-antispam-messagedata-0: x-ms-exchange-antispam-messagedata-0: 4hN8qF/DN2NeRzUJkof0QMDzufmORCPEi2UZHD/R8HGVh2PE1YGYCE0DIcEUZnLUelDg7rKxtRFTp5jhyjGFz3jhD4c3OikuUwHxuXnshW3F/XGyGKebWIvEQc+Ii2JewAbXNNNiRUek0F5N2YQ5Wo6++ozZLzkQKk8GTQPExovRc8fiA95kJnKutZ1AhoR86vahYXKrlECIqz3WuxXKHxqbTptE/vDp5vBvMOJRktsIIRjEpfhY2N9BjmgpGV1txCrA1zdvBDWdiPwGYV/nWctUL0qlHe/lpk6H5vGSOs+pcvLJT0p4vBPMsjxmuiijgyu9gdvbIE8YreAfkXCKZqQ1bzot2v388tgGoBazmw9kshZHCkJYV0HPyzjKEtMMoZZs3pVotxijnV37FEiI99qFnZW+FqhQDXpbRmTN/5P5HuddQWJTDd/lTSTlUQvIeydkK1YsypdVbTQtFq05MxNgCt3C2Wl9zyUWPYFMa1w4bvEHWu65UkNv68vsoBdClAd6dISZd60CfRaxsv+8FSkGKbe2JUUiOnLSY2ewtOULlV9hyngPGNEsX4fnHpePBUJmZEiEwqd4UClX3AyAJy5DeKVNvGxn0b3dH+MPuW9kCbEAOKWI3Z9esssIjsnY6wAY21ZZqFn3oUwGtK//Zk4ajrxnS5hlgW3CgWXWj+98z+r4pOLuDNsbJ4h3jY5Vh/QiqF3rt4THzKjFil4+JNKXnjhYEdpQ3P2F2HxMhVAkChM4oY5ZwL6UrCJEFzIxSFHlimMCveOx/ePk9Vr6wc4gcS/jqb3VON4I8W6cDK6T8zoxevt8QRdZozEjPcTiCqccyi+MCc5hoIZkMP+yGm638FLmX3jPcc7frozPgFw0tV21wB/8+CGrde3ymdG1uQ1s+/9DQUlqxMTjpwbNRj3V9ynCufP92OhrEcdNtonyEsBz3k+xRU0sz/mQ/5rLWdF3OlwyLDWyoVG4nUULuSb07QajJFnXzneyUT4UsRV6ZgTz4yhk7j1GfVnwt/DHTwWhvvc6JTpM1+5ioc0ereNJjyFAoOs6ii9D5QeXG2TGbt93SAjuqVRDbkOwcGJw8QyoqA7ing/VQPxuAir215UBVqRU/pZC77wL2ycBC35fxfN/KTdzIVwqYOk+dJXfu6+Ep2ZS5eM70JaToh02cs+8j+jvxTPcP1sP2eW4hgAjLNlZgjawjr043Z/WnP78YSyXTFzKcXLfCMJSCDjc3kY1+TfR5CNN/KZmigRtHokyubf2FidlIErDz+knWVE240hauq2HnlAK963KnwoV3kZzz9IRnBIt/6lHYWW7seWnTW74EYlM+BkkQcGBZVohYzSgxyta+iogLMBzaYZ2UiEzsRa7b2ogfMBcnFlEhO9vlXbAyTi1X+zFC9wkEABBXpvKbHdNeAqJgWR/e1vNaoufYaprAwoOjGxDH3h4NlQvTCF7uDmXRyzTqMQ2etGDS7xhA8zLMCViA5T4jkSSO4z8YvLTUD+jmOPXu2+fcdCoAS0IE9kE5HQlUVzw8vtzakPh2FxG7rpx8Ea347xUwZR76jrLmsyLM+E+rTiG+ZffCLeitQUUqhcCbGKmvGOW Content-Type: multipart/alternative; boundary="_000_DM6PR04MB3980402B00B081F51E7D156FDB332DM6PR04MB3980namp_" Precedence: bulk List-help: <mailto:php-db+help@lists.php.net List-unsubscribe: <mailto:php-db+unsubscribe@lists.php.net> List-post: <mailto:php-db@lists.php.net> List-Id: php-db.lists.php.net MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: t5sZ8p82Vu9to+y3wvvbwJyyFGvx+RyZTrHzRzZQxKM5/RbhikTnubpjtea/7xImmlsUlqJ4H4CBCcL5nnn1J238r1Kcm+9sdswTJsAkLTDPG3KyziI9N6ECahgEMdbNnWRa1egzPBSN51zFU2Ra5dg4+Tz2y9Pa/AcxvUVpaQALSb3/kX9mIVOpXFP4pWETa7+VuDDPQ1vtmUCbxhFSnxRFzSKnX4GOl6fVi8pnM1QF5k1ALRStOorJpGic9ZmPQAfPOi/rQ7YGDlvbVlV0KAk6jSxm6E8QobsUncmUWyOGb5i4lWfeOeRH2cIsyMVYqkTqevZp0gwXJn/B3Hx5oKXEvYPiCTYd43opdku0IFCAmPi70SkDA9ff6nEngNtvid9RqBHFvxnfjvLmx/shvFaJI8Z2gJ0ph32kIWUkRR2uOr55gL6NR8HU4vRLxo72eDkWMn3Lws9KuCn9LAGfJ4jAhdYArFAS2FxOjywFaBGBa14L1V/eR5J2B7SzZhqemeWZ/bYFgeAxQ8kQmjmKcv6/edm5y1hwnPaY6HsYvEu9rK1fr4/6h7OJuhroVAU+0dR1o8hS/D2JzOQrQK/aOA== X-OriginatorOrg: maplelane.ag X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB3980.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0e03a01-caec-405e-0023-08dc491a2159 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2024 20:12:55.6715 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c678f8e6-6361-4958-a86b-309f479d0c79 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AnNWXQZvupVOeDZ7UzDM7/KLEnA9r88RF6t0IFmW5j8WPqN8xov77Cvp2SPLbRaSZ+WEFIFKwxW6KryCBCOaqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR04MB7560 X-TM-AS-ERS: 104.47.55.100-0.0.0.0 X-TMASE-Version: StarCloud-1.3-9.1.1015-28264.002 X-TMASE-Result: 10--26.572800-4.000000 X-TMASE-MatchedRID: b/1IsOqez6fK/IJeOz1fZRZu3Ax5Ngq8vUwFctMuPBtpcllX9CE7NdFi Fiy6T/KwL0bx/gbQntrQNyRjMKSCsX7Teh9p5yoMjTQ8guCmq1uJnltxZVUTwCzqG2us0S5oMyG xDh/9/F1vYt9e+oQTLrCEnJzRz3rMPOEeuHW0qC8NLyMY4lOKmmPsaE89ndKToBcgkSxtIGypc2 mXV9zZ13pBEuhjABjQmbFlWwmY+d1MKH6aQq1sw7v8GRKsaHWWCsYnJzXwRorIEVw/tNyThLTD0 yzhPQyUGb4MVACziptHHtaDadTy53J0DupKmefp+DKsrukGaywSlFBwyvSaLkJ2NPPC9d6aRUAo sIvY/ERngIaNLbjgld9dNTyVJG/nrIri5giq6IkL6av7YvHcfDk2uMRKx2X3p92zxqYVNns/ihx m7AvDj1i0OIl77MlxUUH40xzxG/bySz0/8mqVoAiPD69oygibJ5cklz6jVRuVb+Yicur2ZBLWlJ bpAiZAAHg/HS2tqGj4/oytsN2LVXSlFDDBiWgxi2jNQHuhUFfmljAKHMq/CaRu78+FtOOxVwl7N ZX+kmz+e23e355lsuH9m7FIEps2U+CtvVfgash4wv1alld3e+ac83o07WJqCbcwEoBVsm8/+b3U k9g74Xe/3hIM1F+bVzFht4XOw7NM4jl/oEwkqd76Dvdp9ywqOFNwKw3FG0meA5EyuFIrHD/3G21 V3Mckbs7RycvqXjIPwut/fkgwunHRzjcS4ENUXNPUnntGF/+VqSbOq3jwAnvBA9C/1eiFIj4oYG /COlFFq3Di+PoXZlwJ057ljktmYP/sMgkbQ0amn5mCl4eDHASXrcJGHda26T/LTDsmJmg= X-TMASE-XGENCLOUD: 8deabe3d-a799-4341-92dd-b7343ea0e31e-0-0-200-0 X-TM-Deliver-Signature: 457F89D25297A21E2AE966016D18C204 X-TM-Addin-Auth: 63aqhGOge/93+2lfUm++lJ0439mYWOpAf0NNgvwZJR2nxhBOj1eNXHP3eY6 Q/wVkl/hQnJJIGCi1QV2e880FK1HyUtsgdqfsXAqtY6jJyQ0o+yuxU2IyIeBSD+FHjlrNbcvm2V 1aEBWmlJbXSVyJe9UbIqbFTx4ZaBzT3HLJ6wpOKoUshsVzlhHVlQVWiPkFM40lTGTXPR4LTSV51 sTX9bb+eTnsVbB9zNaIbCPFhb13ywO99T2+evQCJFsHI5///waKtOMxevVqamZORrGK59Xow3su fb438nVg4u5bNodoA7v0aQXO3WrWQ0TRTv0XYkks5DT6OJc2IFGt8HYFxg==.yzLsesJ2kdBwHX rjm568UVNnSlqU6ZaQtAQdVJ8eF8lBRk7akp5HRCEqI08sZj81txP7bgIL9LFeIBkrbx7AtVcOf 9pyuo7JqxTcxfWd7b3KY6ZJLbjw81CjkKnD72ZZAZEjqm9m/SNROC1s2IsEHa9FBVpvU4uYQd32 MKoTZLf38xHe8il2ia8zZSc73xdPj6EETo7QauYWGCaEjp+3x6Rjbk9Y0zvOKg5mgUDf9U9N4EF VzxRBbO8kx3OC3FZSnqwWMWK1zH9o0xuToHtuztLf9842dgmYX56TeSGHPGtGScKtvRnj2dXf4o Yc+UGaEcc6azuMBfIHi1fhEaN3hA== X-TM-Addin-ProductCode: EMS