Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7540799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:43:40+00:00 2026-05-30T07:43:40+00:00

How do I save a data to MongoDB? I have a about 1GB size

  • 0

How do I save a data to MongoDB? I have a about 1GB size object turned to BsonDocument. I want to save this file to MongoDB. Since the mongo supports only 4MB, how I would I save this gigantic bsondocument? If I use gridFS, would the gridfs automatically chunk this large object by itself and send it to the server?

Please any help and pointers are appreciated.

Is there any tricks and stuff that I should know about. I’m not saving any images, videos or audios. I’m saving a object graph (2GB) Do I have to turn the object graph to bsondocument and then send it to the server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:43:42+00:00Added an answer on May 30, 2026 at 7:43 am

    Using GridFS will basically make this object into a series of “file chunks” and it will behave like a file.

    I have a about 1GB size object turned to BsonDocument.

    You need to break this out into multiple BsonDocuments against which you can query. MongoDB is completely incapable of handling a single giant BsonDocument.

    MongoDB is intended to store lots of little BsonDocuments and allow you query against them.

    I’m saving a object graph (2GB)

    Is it possible to break this out into queryable pieces?

    If not, then you may be using the wrong DB. There are a few Graph Database designed for this type of storage and querying. Check out Neo4J or Microsoft’s Trinity.

    These are Graph DBs designed for handling this type of work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to save data to xml file , which include Create xml file
I'm trying to save the parsed data into MongoDB. I want to store every
I work with ruby on rails and want to save in mongodb data with
I'd like to save data from an SQL Server database table to a file,
So I have an unbound form that I use to save data to a
according to this image, i try to save data in NSUserDefaults but my App
I'm trying to save data from the database into a csv file. My problem
i want to save data in two table mysql, that was nice, but now
I'm trying to save data to and XML file on Iphone. For that, I
I have a ASP.NET web service that I used to asynchronously save data to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.