![]() |
SQL Query - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: SQL Query (/showthread.php?tid=22313) |
SQL Query - El Forum - 09-04-2009 [eluser]georgerobbo[/eluser] Hello, I have the following SQL query. Code: function get_panel() Please ignore, I have found a solution. Apologies for a pointless thread. SQL Query - El Forum - 09-04-2009 [eluser]jedd[/eluser] $this->db->limit(1); I think I read once that random order by is expensive compared to calculating the max row number, then using a php random function to pick a row #, and doing a lookup of that row. SQL Query - El Forum - 09-04-2009 [eluser]georgerobbo[/eluser] Okay, well I will google up on it. Thank you very much for the advice. |