June 19, 2013

Comment: Derived Tables and Views Performance

mysql-and-php-prodcuts-and-cart.html create dynamic main menu and sub menu using php and mysql php… $mysql=mysql_connect(’127.0.0.1′,’root’,”); mysql_select_db(‘test’,$mysql); function display_menu($parent, $level) { $result = mysql

Post: MySQL 5.6 - InnoDB Memcached Plugin as a caching layer

… from MySQL 5.6 is to use a caching layer to store expensive result sets or objects.  Some typical use cases include: Complicated query result set (search results, recent… Host-Only network 1 Box with http/php, 1 box with memcache or mysql started PHP script Zend framework libmemcached PECL module Zend…

Comment: MySQL and Percona Server in LinkBench benchmark

…you are not going to have good performance results. Prior to 5.6 foreground threads were …02/mysql-56-is-much-faster-on-io-bound.html) but that patch can’t be usedmysql.com/bug.php?id=68658 http://bugs.mysql.com/bug.php?id=68588 http://bugs.mysql.com/bug.php?id=68555 http://bugs.mysql.com/bug.php

Comment: MySQL and Percona Server in LinkBench benchmark

…you are not going to have good performance results. Prior to 5.6 foreground threads were …02/mysql-56-is-much-faster-on-io-bound.html) but that patch can’t be usedmysql.com/bug.php?id=68658 http://bugs.mysql.com/bug.php?id=68588 http://bugs.mysql.com/bug.php?id=68555 http://bugs.mysql.com/bug.php

Post: Handling big result sets

… way is send query via mysql_query and than handle the result in loop mysql_fetch_array (here I use PHP functions but they are… second one is result mode : MYSQLI_USE_RESULT or MYSQLI_STORE_RESULT. (Also there can be used pair mysql_real_query / mysql_use_result or mysql_store_result, which are the…

Post: PHP Large result sets and summary tables.

… can use mysql_unbuffered_query instead and mysqli and PDO have their own way to reach similar behavior. This call users underlying mysql_use_result API call which does not store all result set in memory but instead streams it… you can’t use mysql_num_rows() and mysql_data_seek() if you use this method but this is told in PHP manual and so…

Post: Flexviews - part 3 - improving query performance using materialized views

results mysql> select sum(total_lines) from dashboard_customer_sales ; +——————+ | sum(total_lines) | +——————+ | 155186550 | +——————+ 1 row in set (0.64 sec) mysql

Post: Accessing Percona XtraDB Cluster nodes in parallel from PHP using MySQL asynchronous queries

… new asynchronous call to send a query to MySQL using a new MySQLnd driver for PHP. In this post I’ll only show… as $k=>$link) { if ($result = $link->reap_async_query()) { $res = $result->fetch_row(); # Handle returned result mysqli_free_result($result); } else die(sprintf(“MySQLi Error…

Post: Impact of the number of idle connections in MySQL

php ./make_conn.php $numconn & cat dbt2.sql | mysql -h 10.2.2.129 -u root dbt2 sleep 120 ./run_mysql….IP of the Desktop. This script uses a PHP script, make_conn.php, to generate the idle connections. This… idle connections from a third box and the results were the exact same. The conclusion is quite …