All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 1c211767 authored by Leigh B Stoller's avatar Leigh B Stoller

Remove order by clause in profile query, this causes mysql to use a

filesort operation, which is a lot slower. And then we throw away the
results of the sort anyway!
parent b2c05d9c
......@@ -227,8 +227,7 @@ else {
" v.version=p.version ".
"$joinclause ".
"where locked is null and p.disabled=0 and ".
" v.disabled=0 and ($whereclause) ".
"order by p.topdog desc");
" v.disabled=0 and ($whereclause) ");
while ($row = mysql_fetch_array($query_result)) {
$profile_array[$row["uuid"]] = $row["name"];
if ($row["pid"] == $profile_default_pid &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment