You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2022. It is now read-only.
Its not clear to me but if you don't specify distinct=True to django.db.models.Count() sometimes you get dupes -- ie the wrong count.
I feel like this is non-obvious and the CountOf() plugin should just always use distinct=True. When would you ever want dupes included in your count? 🤔
The text was updated successfully, but these errors were encountered:
pmg103
changed the title
Should CountOf use Count(..., distinct=True) by default? Or allow it to be specified?
Should CountOf use Count(..., distinct=True) by default? Or allow it to be specified? -- FIXED: NEEDS TESTS
Nov 14, 2019
pmg103
changed the title
Should CountOf use Count(..., distinct=True) by default? Or allow it to be specified? -- FIXED: NEEDS TESTS
Should CountOf use Count(..., distinct=True) by default? Or allow it to be specified?
Jan 3, 2020
Its not clear to me but if you don't
specify distinct=True
todjango.db.models.Count()
sometimes you get dupes -- ie the wrong count.I feel like this is non-obvious and the
CountOf()
plugin should just always usedistinct=True
. When would you ever want dupes included in your count? 🤔The text was updated successfully, but these errors were encountered: