- Issue created by @hkirsman
I'm wrorking on adding support for AWS local write forwarding which sends some queries from reader to writer https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysq...
I've added patch as attachment
As solution I've decided to patch core mysql module. Insert, delete, update, select classes are switched to reader.
In Connection class I'm detecting for transactions as local write forwarding does not support SAVEPOINTS. We'll switch everything to writer if these are started.
In setting's I've defined the extra connection
$databases['default']['reader'] = [
'driver' => 'mysql',
'database' => 'db',
'username' => 'db',
'password' => 'db',
'host' => 'db',
'port' => 3306,
'init_commands' => [
'isolation_level' => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
],
];
I wanted to ask what do you think of the solution?
Active
10.3 ✨
database system