I am getting performance issue with this aggregation pipeline?This almost takes 20 sec to give response of 30000 records

What’s your full connection string, with redacted username / password?