The patch can't be committed as is. It triggers one query per issue on the issue list and an additional for each issue link in fromatted text. Here is a patch that preloads the attachment counts for the issue list.Still, this adds some more overhead to the issue list and I'd like to get more feedback from users before adding it to the core. I personnally don't feel much the need for it.