Index: includes/database.mysql.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database.mysql.inc,v retrieving revision 1.25 diff -u -b -r1.25 database.mysql.inc --- includes/database.mysql.inc 9 Sep 2004 05:51:08 -0000 1.25 +++ includes/database.mysql.inc 20 Oct 2004 20:30:07 -0000 @@ -19,6 +19,9 @@ * and might require additional database/webserver tuning. It can increase * performance, however, when the overhead to connect to your database is high * (e.g. your database and web server live on different machines). + * + * MYSQL_CLIENT_COMPRESS is only valid since MySQL 4.2.x, but can dramatically + * improve your performance (since Drupal data is mostly text transfers) */ function db_connect($url) { $url = parse_url($url); @@ -28,7 +31,7 @@ $url['host'] = $url['host'] .':'. $url['port']; } - $connection = mysql_connect($url['host'], $url['user'], $url['pass']) or die(mysql_error()); + $connection = mysql_connect($url['host'], $url['user'], $url['pass'], FALSE, MYSQL_CLIENT_COMPRESS) or die(mysql_error()); mysql_select_db(substr($url['path'], 1)) or die('unable to select database'); return $connection;