{"action":"opened","issue":{"url":"https://api.github.com/repos/torchbox/django-modelcluster/issues/38","labels_url":"https://api.github.com/repos/torchbox/django-modelcluster/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/django-modelcluster/issues/38/comments","events_url":"https://api.github.com/repos/torchbox/django-modelcluster/issues/38/events","html_url":"https://github.com/torchbox/django-modelcluster/issues/38","id":103016630,"number":38,"title":"Cluster TaggableManager is doing too much queries","user":{"login":"marctc","id":280193,"avatar_url":"https://avatars.githubusercontent.com/u/280193?v=3","gravatar_id":"","url":"https://api.github.com/users/marctc","html_url":"https://github.com/marctc","followers_url":"https://api.github.com/users/marctc/followers","following_url":"https://api.github.com/users/marctc/following{/other_user}","gists_url":"https://api.github.com/users/marctc/gists{/gist_id}","starred_url":"https://api.github.com/users/marctc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marctc/subscriptions","organizations_url":"https://api.github.com/users/marctc/orgs","repos_url":"https://api.github.com/users/marctc/repos","events_url":"https://api.github.com/users/marctc/events{/privacy}","received_events_url":"https://api.github.com/users/marctc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T12:58:33Z","updated_at":"2015-08-25T12:58:33Z","closed_at":null,"body":"I'm using a ClusterTaggableManager on a Wagtail project that I'm currently developing. I realized that using this Manager it performs a huge amount of queries when rendering templates,\r\n\r\n![captura de 2015-08-25 14 35 04](https://cloud.githubusercontent.com/assets/280193/9466901/4f329a88-4b38-11e5-8861-df9d16876b8a.png)\r\n\r\nwhile TaggableManager don't.\r\n\r\nI've tried to replace `get_queryset = get_query_set` by `get_queryset = _TaggableManager.get_query_set` and it seems to work everything (I think) and don't perform that queries. I also saw that there is a comment in that function that begins with \"FIXME\". Why is this custom `get_query_set` method needed? Could be improved easily to not perform such amount of queries?"}}