Changes between Version 1 and Version 2 of Ticket #30130
- Timestamp:
- Jan 24, 2019, 2:57:16 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30130 – Description
v1 v2 1 1 I have a table virtualmachineresources, which has 100k+ rows, it has columns `machine` and `cluster`, some rows the cluster field is empty. it has repeating rows of machine + with/without cluster, hence I want to use the distinct() method. 2 2 3 using .values().distinct().count(), it return 2k rows3 using .values().distinct().count(), it returned 2k rows 4 4 5 5 … … 19 19 20 20 21 I observed it return 100k rows, with repeating rows that the same 'machine` with/without the cluster.21 I observed it returned 100k rows, with repeating rows that the same 'machine` with/without the cluster. 22 22 23 23 Here is the corresponding stackoverflow question https://stackoverflow.com/questions/54354462/django-distinct-returns-more-records-than-count