BulkWrite Hangs App

I use BulkWrite to quickly create test data. When I do, my app hangs. Specifically I get the following error in the browser console. “WebSocket is closed before the connection is established.”

When I remove the test data the app begins to work again. Anyone use BulkWrite in their app? Any guidance would be appreciated. Thanks.

Just realized I never posted my solution to this issue. Basically be very careful with BulkWrite to structure the data correctly and to make sure all required fields are present.

was that Oplog issue?

I don’t think so. However, when I get a serious number of users doing BulkWrite at the same time I may have to disable Oplog tailing.

1 Like