From 949ace971b4c1ae018e9aadbeab7e51ecaf3a914 Mon Sep 17 00:00:00 2001 From: Redbehrend <44125368+Redbehrend@users.noreply.github.com> Date: Thu, 23 Apr 2020 08:54:53 -0700 Subject: [PATCH] Update index.lua two randoms added too much query time just simplified not the same results but still better than just plain random() --- app/scripts/resources/scripts/app/ring_groups/index.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/resources/scripts/app/ring_groups/index.lua b/app/scripts/resources/scripts/app/ring_groups/index.lua index c3a89a3bc4..e284082046 100644 --- a/app/scripts/resources/scripts/app/ring_groups/index.lua +++ b/app/scripts/resources/scripts/app/ring_groups/index.lua @@ -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'