Skip to content

Commit

Permalink
tweak changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Jun 3, 2023
1 parent 59f36a2 commit cd5595c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ We can easily get the number of unique concert dates:
>>> await Concert.count(distinct=[Concert.start_date])
2
We could have just done this instead:

.. code-block:: python
len(await Concert.select(Concert.start_date).distinct())
But it's far less efficient when you have lots of rows, because all of the
distinct rows need to be returned from the database.

Also, the docs for the ``count`` query, aggregate functions, and
``group_by`` clause were significantly improved.

Expand Down

0 comments on commit cd5595c

Please sign in to comment.