When moving my DB2 database from system running SUSE to one running Fedora Core 6, I have noticed a surprising slowdown of perl accessing that database as follows:
Find the same row 10,000 times: 2x slower
Read 100,000 rows: 10x slower (!!)
A devastating slowdown...
Both computers have a dual core "Intel Pentium D CPU 2.80GHz" processor and I am using DBIx::Class (0.08003, most recent) to access a DB2 database (V9.1).
Now I have noticed that SUSE comes with perl compiled for the i586 architecture, while Fedora Core uses perl for i386. So I have installed the following i586 packages from the SUSE repository on my Fedora system:
perl perl-DBI perl-Net-Daemon perl-PlRPC Then I have recompiled DBD::DB2 and now the queries on the Fedora system run almost as fast (10-20% slower) as on the SUSE system. I hope this is a helpful solution for others, even though it seems somewhat random.
Did someone experience similar problems? Does this have to do with SUSE vs. Fedora builds or with i386 vs. i586 builds?