misterperl has asked for the wisdom of the Perl Monks concerning the following question:
DBD::mysql::st execute failed: Got timeout reading communication packets
a WISE monk here once told me that DBI does nothing more than run the same mysql transactions as run ad hoc. That statement helped me, and held up through many trials for years (logged in as the same user running the same query, DBI and ad hoc produce the same result, or error, in roughly the same time).
So, I tried the exact query that timed out in mysql, and the federated table (joined with a local table) responded immediately; no apparent speed difference with federated vs local tables from the mysql ad hoc query. I'd expected given the theorm above, it would also time out, or at least be slow. No; lightning fast!
So I propose that theorm is not always true- there is some apparent and significant difference using DBI, vs ad hoc queries, on federated tables. Being a pretty rare configuration, I'm not confident that even the astute monk community would have advice on this topic, and I may have to ask the esteemed Tim Bunce if he's still in the DBI business! If not I wish him well.
Best regards to all Monks, and any thoughts are appreciated. Gemini suggested increasing the TIMEOUTS on each end which I did, but that didn't help.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBI and FEDERATED table slowdown
by hippo (Archbishop) on Feb 27, 2024 at 23:17 UTC | |
Re: DBI and FEDERATED table slowdown
by talexb (Chancellor) on Feb 28, 2024 at 04:35 UTC | |
by Marshall (Canon) on Feb 28, 2024 at 07:16 UTC | |
by hippo (Archbishop) on Feb 28, 2024 at 10:49 UTC | |
by talexb (Chancellor) on Feb 28, 2024 at 14:52 UTC | |
by soonix (Chancellor) on Feb 28, 2024 at 19:34 UTC | |
by cavac (Prior) on Mar 07, 2024 at 08:28 UTC | |
by misterperl (Friar) on Feb 28, 2024 at 16:25 UTC | |
by LanX (Saint) on Feb 28, 2024 at 10:40 UTC | |
by misterperl (Friar) on Feb 28, 2024 at 16:20 UTC | |
by afoken (Chancellor) on Feb 28, 2024 at 19:58 UTC | |
by afoken (Chancellor) on Feb 29, 2024 at 12:21 UTC | |
by LanX (Saint) on Feb 29, 2024 at 14:37 UTC | |
by talexb (Chancellor) on Feb 28, 2024 at 21:25 UTC |