The post_details method calls 2 sql queries. We can minimize the number of queries required to be executed to fetch the post and associated comments.