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
Loading data from sql to mongo
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
  4 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
 
abdul kadar  
View profile  
 More options Oct 1 2012, 4:53 pm
From: abdul kadar <abdulkad...@gmail.com>
Date: Mon, 1 Oct 2012 13:53:15 -0700 (PDT)
Local: Mon, Oct 1 2012 4:53 pm
Subject: Loading data from sql to mongo

Hi,

I need to load data from sql to mongo. in sql i have 42 tables , so a
document needs to be generated by those 42 tables, just i created a stored
procedure which will deal all the tables and with the help of C# class
structures i loaded those records as a batch of 5000, which is taking 7.5
hours to load complete 2 million records.

is there any better way to load the data to mongo?

i tried in another way like
1. loaded base table
2. updated with the second table using Save method which take 3.5 hours to
update 2 million documents.( i need to do all other 41  tables and this is
time taking process)

please help me in this regard.

Thanks


 
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.
Gianfranco  
View profile  
 More options Oct 2 2012, 9:19 am
From: Gianfranco <gianfra...@10gen.com>
Date: Tue, 2 Oct 2012 06:19:00 -0700 (PDT)
Subject: Re: Loading data from sql to mongo

Are you running those stored procedures to create a non-relational model?

Mongoimport can import json and csv files.


 
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.
abdul kadar  
View profile  
 More options Oct 4 2012, 12:56 pm
From: abdul kadar <abdulkad...@gmail.com>
Date: Thu, 4 Oct 2012 09:56:04 -0700 (PDT)
Local: Thurs, Oct 4 2012 12:56 pm
Subject: Re: Loading data from sql to mongo

yes, then i form the document structure from .net application and saving
into mongo..

if 1 table data refresh happen then can i update that table information
alone in mongo?is it advisable?

Thanks
Abdul Kadar


 
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.
Gianfranco  
View profile  
 More options Oct 5 2012, 5:32 am
From: Gianfranco <gianfra...@10gen.com>
Date: Fri, 5 Oct 2012 02:32:37 -0700 (PDT)
Local: Fri, Oct 5 2012 5:32 am
Subject: Re: Loading data from sql to mongo

Mongo is a NoSQL database meaning the schema-less nature does not enforce
any structure on "tables" or "collections".

Basically there is no CREATE TABLE or ALTER TABLE equivalent commands in
Mongo.

If you want to add data into a field which is a string, just insert it.
Delete it etc.

The only thing you'll need to change is perhaps in the application, when
retrieving those records in a different schema/field names.

Perhaps if you're more familiar with SQL, this table will help you
understand better how do the same things you're familiar with:
http://www.mongodb.org/display/DOCS/SQL+to+Mongo+Mapping+Chart


 
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 »