April 2010
Intermediate to advanced
276 pages
6h 16m
English
In this recipe, we will discuss some performance tuning tips for SQL queries that will be executed against a MySQL Cluster.
A major performance benefit in a MySQL Cluster can be obtained by reducing the percentage of times that queries spend waiting for intra-cluster node network communication. The simplest way to achieve this is to make transactions as large as possible, subject to the constraints that really enormous queries can hit hard and soft limits within MySQL Cluster.
There are a couple of ways to do this. Firstly, turn off AUTOCOMMIT that is enabled by default and automatically wraps every statement within a transaction of its own. To check if AUTOCOMMIT is enabled, execute this query:
Read now
Unlock full access