otimizando o random
This commit is contained in:
parent
f16e1e5e5d
commit
fd9e4324dd
@ -108,7 +108,7 @@ namespace OpenCand.Repository
|
||||
return await connection.QueryFirstOrDefaultAsync<Guid?>(@"
|
||||
SELECT idcandidato
|
||||
FROM candidato
|
||||
ORDER BY RANDOM()
|
||||
TABLESAMPLE SYSTEM (0.01)
|
||||
LIMIT 1;
|
||||
");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user