This has nothing to do with a certain database vendor. Paul
Tuckfield of (first) PayPal and (now) YouTube fame described a
nifty method to speed up MySQL Replication in his keynote at the
MySQL Conference.
The pitch is simple: He implemented an oracle algorithm. In more
detail: In a MySQL setup, several layers of caches exist. In
front of the database sits the query cache that saves the MySQL
from doing actual work (query analysis, execution, disk I/O). The
next two levels sit between MySQL and a the actual disk. The
first is the filesystem cache that the operating system provides.
The second is the block-level cache that the RAID controller
provides. Considering the last, from a MySQL point of view, data
has been written, when it hits the RAID controller.
All these caches serve one purpose: Reduce execution of complex
or slow operations such as physically reading data from a
harddrive or writing to it. MySQL Replication, in a …
[Read more]