Fix N + 1 query when index topic, reply