Remove SQL_CALC_FOUND_ROWS from search query #121

This commit is contained in:
Michael Mayer 2019-07-03 07:56:44 +02:00
parent d596818928
commit cf61c66ce5

View file

@ -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,