|
Posted by Jerry Stuckle on 11/16/07 02:33
Lew wrote:
> NC wrote:
>> Both PHP and Java work well with Oracle; when it comes to MySQL,
>> however, Java (at least in its Tomcat implementation) tends to have
>> performance issues. One widely publicized example is Friendster; the
>> performance problems in its Linux/Tomcat/MySQL stack were so pervasive
>> that the whole application had to be rewritten in PHP.
>
> Could you give some specific citations how Java has "performance issues"
> with MySQL, and why it would differ from Java's performance with
> Postgres or Oracle?
>
> The only thing that could affect performance between Java and a database
> would be the JDBC driver. (Application code issues we will take as
> equivalently dangerous be it Java or PHP.) MySQL provides their own
> JDBC driver.
>
Yes, but MySQL (and many other databases) access through the jdbc
drivers is much slower than in PHP. The JDBC driver is often byte code
and needs to be interpreted. OTOH, the PHP driver is compiled C, and
uses the C calls to the database, which are generally faster.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|