Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Database replication
  • Anyone using FuelPHP with mysql master-slave db replication? Any tips on best approach? I'm assuming I'll configure the two servers, then execute queries like this:
    $result = DB::query('SELECT * FROM `users`', DB::SELECT)->execute('slave');
    
    $result = DB::delete('users')->where('email', 'like', '%@example.com')->execute('master');
    

    Is that about it, or am I simplifying it too much? Thanks,
    Brad
  • Nope, that should be it.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion