Kaynağa Gözat

refactor(storage): remove a useless ORDER BY in GetEnclosure

The query selects a single row by primary key, there is no need to sort
anything.
jvoisin 2 hafta önce
ebeveyn
işleme
c4c357d99d
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  1. 0 1
      internal/storage/enclosure.go

+ 0 - 1
internal/storage/enclosure.go

@@ -120,7 +120,6 @@ func (s *Storage) GetEnclosure(enclosureID int64) (*model.Enclosure, error) {
 			enclosures
 		WHERE
 			id = $1
-		ORDER BY id ASC
 	`
 
 	row := s.db.QueryRow(query, enclosureID)