June 20, 2013

Post: MySQL Query Patterns, Optimized - Webinar questions followup

… answers: Q: Can you compare the use of subqueries/multiple joins vs. multiple queries (e.g. temp tables)? For performance, it’s… another column, and reinitializing the sequence after making certain insert/update/delete operations.  If you have a dataset that changes infrequently… were using the tuple syntax to look up values against multiple columns in a compound index, then the order would matter…

Post: Multicast replication in Percona XtraDB Cluster (PXC) and Galera

Bandwidth multiplication and synchronous clusters I’ve seen a lot of people … migrate an existing unicast cluster to multicast with a rolling update.  I believe (but could be proven wrong) that you must…

Post: Is Synchronous Replication right for your app?

…. It does NOT mean you can’t modify data on multiple cluster nodes simultaneously.  You can. It does NOT set an… a player makes an achievement, your application updates this table with a statement like this: UPDATE achievements SET count = count + 1 where… (100, 1); UPDATE groups SET last_joined=NOW(), last_user_id=100 WHERE id=1; COMMIT; How often might multiple users join…

Comment: Is Synchronous Replication right for your app?

… think of a scenario where you update a row multiple times before committing: Your apps send frequent updates into a message queue. Then a consumer thread reads from the MQ and applies updates to the database, many MQ events per commit. If a…

Post: Follow these basics when migrating to Percona XtraDB Cluster for MySQL

… go through these basics. log_slave_updates is REQUIRED You need to have log_slave_updates enabled on the cluster node acting… be written to the slave’s binary unless log_slave_updates is enabled, this is similar to Percona XtraDB Cluster in… new cluster especially if you are planning to write on multiple nodes. Have PRIMARY KEYS If you still have tables without…

Comment: Is Synchronous Replication right for your app?

…. I’m not sure how useful it is to update the same row multiple times in a single transaction, READ-UNCOMMITTED isn… not if your HA allowed writes (however briefly) to hit multiple nodes during a writer node failover. However, glad to learn…

Comment: Is Synchronous Replication right for your app?

…. E.g. ActiveMQ, RabbitMQ, Resque, etc. All applications would send updates to the MQ in lieu of writing directly to the… comment, “I’m not sure how useful it is to update the same row multiple times in a single transaction.”

Comment: Is Synchronous Replication right for your app?

… some other job (that had an open trx and had updated some meta field, but had not committed) and so could… yet. This type of system simply won’t work across multiple nodes in Galera, however. @Bill — is this the kind of…

Comment: Is Synchronous Replication right for your app?

…. Some other solutions might actually cause RTT penalty for each update. Second I think as the technology evolves we should see… the hot spots also can often be used by using multiple rows (say 10) where you modify different rows to reduce…

Post: How multiple disks can benefit for single client workload ?

… point of the article. In original article I mentioned having multiple hard drives does not help if you have single query… can result in multiple outstanding requests to the disk. Though this does not help dramatically for many “random” update queries. After pages… deal with ? In this case you also can benefit from multiple drives because of the different reason. If you’re using…