rosemanblog
  • About me
  • Technical

Getting the related item in an aggregate

Date Sat 14 August 2010 Category Technical Tags django / aggregation / ORM

There's a question I see quite a lot at StackOverflow and the Django Users group regarding aggregation in Django. It goes like this: I know how to annotate a max/min value for a related item on each item in a queryset. But how do I get the actual ...

View commentss.

more ...

Django aggregation and a simple GROUP BY

Date Mon 10 May 2010 Category Technical Tags django / aggregation / ORM / group-by

I love Django's aggregation framework. It very successfully abstracts the common aggregration tasks into a Pythonic syntax that sits extremely well with the rest of the ORM, and the documentation explains it all without a single reference to SQL.

But sometimes that very abstraction gets in the way of ...

View commentss.

more ...

  • Social

    • twitter
    • github
    • stackoverflow
    • rss
  • Tags

    • django
    • patterns
    • python
    • vim
    • query-efficiency
    • mingus
    • generic-relation
    • terminal
    • aggregation
    • ORM

© 2010 Daniel Roseman · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top