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:
Redbehrend
2020-04-23 08:54:53 -07:00
parent 5b8292c053
commit 949ace971b

View File

@@ -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'