Mike Harris
7/26/2006 2:55:00 PM
Jamey Cribbs wrote:
> GFunk913@gmail.com wrote:
>
>> I had a quick/vague question, wondering if you could shed any light on
>> it. Off the top of your head, how do you feel Mongoose would perform
>> as the backend storage for an object persistance system, where the
>> objects in question are very large (i.e. marshalling to disk creates a
>> 40MB file)?
>>
>>
>
> Is each object 40MB? (God, I hope not!) Or are you saying that, the
> total size of all the objects saved to disk is 40MB?
>
> If it's the latter, Mongoose might work just fine. In a test run I
> had an 8MB file that had about 80,000 records (obviously, lots of
> small records). Mongoose did a #find for a particular record, grabbed
> it, instantiated an object from the Marshaled data, and returned it to
> me, in something like 0.003 seconds.
>
> A little more info on your data would help me give you a more accurate
> answer.
>
> Jamey
>
> Confidentiality Notice: This email message, including any attachments,
> is for the sole use of the intended recipient(s) and may contain
> confidential and/or privileged information. If you are not the
> intended recipient(s), you are hereby notified that any dissemination,
> unauthorized review, use, disclosure or distribution of this email and
> any materials contained in any attachments is prohibited. If you
> receive this message in error, or are not the intended recipient(s),
> please immediately notify the sender by email and destroy all copies
> of the original message, including attachments.
>
>
Sure, I certainly appreciate your help. I have an array that is 40MB
when marshalled to disk. The array contains 200 objects of approx.
equal size. These objects could certainly be further broken up, but I
would prefer not to.
Ideally, the entire array would be marshalled as one piece, with a
transparent object-persistance mechanism. However, I'm open to
marshalling its elements individually, which would probably be the best
way to go, for a number of reasons.
I'm currently using a home-grown "persistant array," where each array
element is marshalled to a seperate file and stored that way.
Obviously, this is non-ideal, which is why I'm looking at other
options. Mongoose looks like a great compromise between the flexibility
of marshalling and storing in the file system and the helpfulness of
storing in a DB.
I guess I don't really have a question anymore, it all seems pretty
straightforward at this point. Thanks for your help, and thanks for
taking the time to write and release Mongoose.