Lets say my table contains the following data
For this dataset, aggregation seems sufficient:
select id, name, max(version) as max_version from mytable group by id, name
1.4m articles
1.4m replys
5 comments
57.0k users