Qt application not responding when accessing mongocxx

Hi,
I am using mongocxx in Qt application , previously can send data to mongodb without any problem , now i have more data coming fast , so this makes application hang.

I am Taking Data from Socket and im doing mongocxx Update_one . When opening application it says not responding , but in qt editor i can see data coming very fast . So how to handle this . is it possible to insert very fast , iam not doing any thread here , when i put same update_code in qthread Run , same problem???
Help please ??

I waited for replies. Nothing came … don’t know why. Finally, I solved the problem.