#543 Show the number of open issues and pull-requests in the menu
Merged by pingou. Opened by pingou.
open_items  into  master

Download 543.patch
no initial comment

I would think that this does a full query and then ignores all the results except for getting the length.
Did you try repo.open_tickets.count()?
I think that should make SQLAlchemy only do a SELECT COUNT(*), which is easier on both the database server and the network.

Worth a try

Tried, but doesn't work:

TypeError: count() takes exactly one argument (0 given)
Metadata