mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Replace COUNT(DISTINCT primary_key)
with COUNT(*)
This commit is contained in:
parent
b964018cd7
commit
8c8e1ea701
4 changed files with 2 additions and 4 deletions
|
@ -52,7 +52,6 @@ func (r *artistRepository) selectArtist(options ...model.QueryOptions) SelectBui
|
|||
|
||||
func (r *artistRepository) CountAll(options ...model.QueryOptions) (int64, error) {
|
||||
sql := r.newSelectWithAnnotation("artist.id")
|
||||
sql = r.withGenres(sql)
|
||||
return r.count(sql, options...)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue