optimized feed-item query