Mercurial > gemma
diff pkg/controllers/importqueue.go @ 2673:df2a31e8f257 import-overview-rework
Re-added LIMIT 1 hint to prev/next SELECTs.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 14 Mar 2019 17:42:15 +0100 |
parents | b997e1fd1d3d |
children | fe93c48f76c9 |
line wrap: on
line diff
--- a/pkg/controllers/importqueue.go Thu Mar 14 17:29:36 2019 +0100 +++ b/pkg/controllers/importqueue.go Thu Mar 14 17:42:15 2019 +0100 @@ -224,8 +224,8 @@ } l.stmt.WriteString(" ORDER BY enqueued DESC ") - a.stmt.WriteString(" ORDER BY enqueued ") - b.stmt.WriteString(" ORDER BY enqueued ") + a.stmt.WriteString(" ORDER BY enqueued LIMIT 1") + b.stmt.WriteString(" ORDER BY enqueued LIMIT 1") if noBefore { b = nil