Remove SQL_CALC_FOUND_ROWS from search query #121
This commit is contained in:
parent
d596818928
commit
cf61c66ce5
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func (s *Search) Photos(form forms.PhotoSearchForm) (results []PhotoSearchResult
|
|||
// q.LogMode(true)
|
||||
|
||||
q = q.Table("photos").
|
||||
Select(`SQL_CALC_FOUND_ROWS photos.*,
|
||||
Select(`photos.*,
|
||||
files.id AS file_id, files.file_primary, files.file_missing, files.file_name, files.file_hash,
|
||||
files.file_type, files.file_mime, files.file_width, files.file_height, files.file_aspect_ratio,
|
||||
files.file_orientation, files.file_main_color, files.file_colors, files.file_luminance, files.file_chroma,
|
||||
|
|
Loading…
Reference in a new issue