• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Query

#2
[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.


Messages In This Thread
SQL Query - by El Forum - 09-04-2009, 01:58 PM
SQL Query - by El Forum - 09-04-2009, 02:00 PM
SQL Query - by El Forum - 09-04-2009, 02:02 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.