Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
BsonDocument serialization, deserialization and saving
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jowje  
View profile  
 More options Feb 22 2012, 7:31 pm
From: jowje <enk...@yahoo.com>
Date: Wed, 22 Feb 2012 16:31:22 -0800 (PST)
Local: Wed, Feb 22 2012 7:31 pm
Subject: [mongodb-user] BsonDocument serialization, deserialization and saving
Hi,

I'm trying to save a data into MongoDB. I'm new to MongoDB. I have
several questions:

1. How much data size can MongoDB handle? I might have a static field
of a class that contains like 20 other classes saved into Mongo. The
object might be up to 2GB size. Can MongoDB handle 2GB object (after
it is serialized and turned into BsonDocument) and then sent to the
MongoDB server?

2. I can turn any object into BsonDocument like

Class1 _object = GetObject();

BsonDocument _document = _object.ToBsonDocument() //is it being
serialized at this moment, on this line? and any and all serialization
error will occur at this line?

3. How do I turn an BsonDocument back to "Class1" object in this case?

4. When I do _object.ToBsonDocument(), my BsonDocument is empty? It
basically has the structure, but no data?

5. Do I have to call MapClass before turning object to bsondocument?
All the classes that the object has like 20 in this case? So call 20
times on each class the function "BsonClassMap.RegisterClassMap<each
class>()"

Thank you for your help.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Hernandez  
View profile  
 More options Feb 22 2012, 11:28 pm
From: Scott Hernandez <scotthernan...@gmail.com>
Date: Wed, 22 Feb 2012 23:28:01 -0500
Local: Wed, Feb 22 2012 11:28 pm
Subject: Re: [mongodb-user] BsonDocument serialization, deserialization and saving

On Wed, Feb 22, 2012 at 7:31 PM, jowje <enk...@yahoo.com> wrote:
> Hi,

> I'm trying to save a data into MongoDB. I'm new to MongoDB. I have
> several questions:

> 1. How much data size can MongoDB handle? I might have a static field
> of a class that contains like 20 other classes saved into Mongo. The
> object might be up to 2GB size. Can MongoDB handle 2GB object (after
> it is serialized and turned into BsonDocument) and then sent to the
> MongoDB server?

Each document is limited to 16MB. If you want to store 2GB you should
break up the object graph into many chunks and store them as separate
documents.

You should map the classes and you won't have to do the steps above to
manually convert.
http://www.mongodb.org/display/DOCS/CSharp+Driver+Serialization+Tutorial

> Thank you for your help.

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »