Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
MySQL and MongoDB in parallel
  • Hi all, I am wondering if Fuel supports using MySQL and MongoDB in parallel. Lets say, I want to use MondoDB just for app logging and mysql for the rest. Would that be possible? As far as I see, db class uses data of the config for connection. Could I use a different config for a single controller or class? Regards,
    Bastian
  • Fuel is initially derived from CodeIgniter where this is possible, but with some constraints such as the fact that you have to specify the db you are using.
    But did you receive other answers to your question ?
  • Let's correct that: There isn't anything "derived" from CodeIgniter in FuelPHP, other than the Unzip class.

    At the moment, Mongo and Redis are supported through separate classes, they don't run via the query builder. So it's not a problem using them simultaneously. And the query builders supports multiple connections, so even if it was used, it would not have been a problem.
  • FuelPHP support both MySQL and MongoDB very well. I'm using MySQL and MongoDB for some projects. But I'm doing the other ways, limited used of MySQL for things rely on db side calculation and put most of the things in MongoDB.

    I'm working on MongoDB Model package for FuelPHP. I hope I can complete it soon but quite busy on so many projects on hand now.

Howdy, Stranger!

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

In this Discussion