It should only get called for non first_published_editions in atom feeds at the moment. Which I believe isn't that many of them. Most things don't make it to version 2.0 (only 2% of documents). If you want I can add an index on document_id, published_major_version, published_minor_version which should make the query cheeper.