Update index.lua
two randoms added too much query time just simplified not the same results but still better than just plain random()
This commit is contained in:
parent
5b8292c053
commit
949ace971b
|
|
@ -437,7 +437,7 @@
|
|||
if (database["type"] == "mysql") then
|
||||
sql_order = 'rand()'
|
||||
else
|
||||
sql_order = 'random() * random()' --both postgresql and sqlite uses random() instead of rand()
|
||||
sql_order = 'random() * 1000000' --both postgresql and sqlite uses random() instead of rand()
|
||||
end
|
||||
else
|
||||
sql_order='d.destination_delay, d.destination_number asc'
|
||||
|
|
|
|||
Loading…
Reference in New Issue