mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-28 13:56:35 +00:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user