-
Notifications
You must be signed in to change notification settings - Fork 224
Document too large: This BSON document is limited to 4194304 bytes. (BSON::InvalidDocument) #101
Comments
I have the same problem. Any solution? |
I've figured out a solution, but my Ruby knowledge is very minimal, so I'll need some assistance in getting this patch into the proper form to add to the repo. First, install the deep clone gem, from the Unix shell: Then, comment out line 212 of schema.rb: and underneath insert the following lines: I don't think this is the proper way to introduce an external dependency to the project, but as a quick hack it worked for me. It's quite slow on large objects (it took over 5 mins to process: ~2000 rows containing large PDFs), but it eventually inserts them into the postgres db. |
Hmm, the issue here is likely that Replacing |
I've verified, changing line 212 of schema.rb to: |
I have been working with MongoDB 2.4.12 attempting to migrate to PostgreSQL 9.4.X for a system migration. Most of the collections translate but I am unable to get past this error.
I have tried swapping up the driver however I had had no luck with MoSQL detecting and utilizing the new driver.
The text was updated successfully, but these errors were encountered: