I develop Codeigniter, and when it gets into complex database queries I use
$this->db->query('my complicated query');
then move to the object array using $query->result();
and still itβs very good and useful
Now my question
What if I want to create a mysql view and select it? Will be
$this->db->from('mysql_view')
take mysql view as table or not?
And if I do, there will be some kind of performance difference - are these views faster than regular database queries?
Which would be best used in the Codeigniter and MYSQL databases dealing with complex queries, as I understand that ActiveRecord is just a query builder, and some tests are even a little slower
Thanks in advance for your advice.
source share