Optimising some queries on article page