I have a 80MB json file which I need to insert into MongoDB using pymongo. I tried GridFS but figured out that it is mostly for storing a single large file (atleast from what I figure out).
Even mongoimport gave me errors saying that the input is too large
Can anybody advise me on how to go about it. How does one handle such a case
Thanks
How many documents are in your 80MB json file? Are they all below 4MB?
Yes, gridfs is for large chunks of data, like files or blobs.
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>
Anush Shetty wrote:
> Problem is that It is a single xml file converted to json. What should I
> do when a single file itself is 80MB.
So you are telling us that your JSON file contains only one document
with 80 MB of data? You won't be unable to import that due to the
mentioned size restrictions. No idea what your data is about. If it
contains multiple independent subdocuments or what: perform some
transformation first or import your data using some hand-crafted
script yourself.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJNacPiAAoJEADcfz7u4AZj3F4LvREgS1HPd2RKX73n6VSfF/Wr
cXgvuYbDKyp7NqbK5ozQ8NfvUZo/I+VhsqLI5Kmoeyq2ylrrGXr7BsS9arfK0dwF
g2vxLUC2PvNknt1CxD9TvJzVJkrUHa6aZVYlKo8CAMwMLvIXk/NZax84lPo5vLhY
RicGegA5NoDqdIEF+TYvdwxBMLz7gh4S4oQYfWCe1sGWY5dylzCvsByOIfnfmC0f
M9Axf1kT2EGuSUukCwqcTBqgOF5KL7XphLeH87MrHws0bE2AoLPQlc+/JR55kCN+
GtgTqo0Fe03x2mImT9SOvJVEH+DQBuwVeYWVvjcLihb7YzZqmsLkse+0R0sjfc3O
al2YOIeToSs76CPo2a7asNPP+67rEI71IYRKitELiYkYZr5VzQl5Eirf5rA+JE00
pu6s5aTQ2CcK5+ujlq+ZmFfCKzcclXTCJi/nDDkikvPidy1j2DUF0QOCZPMBvNBs
Vx+BTGDRa5TXs7yLC10CA8WyiQ7Yir0=
=1Skj
-----END PGP SIGNATURE-----