aspose file tools*
The moose likes JDBC and the fly likes how to add 50 million records in a table? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to add 50 million records in a table?" Watch "how to add 50 million records in a table?" New topic
Author

how to add 50 million records in a table?

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi, i want to add 50 million records in my table
can i directly add 50 million records ?
some people say that i need to do something before creating the table

what should i do?
and can i achieve performance?


please give me some information on this


thanks in advance

regards
saikrihshna


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
You can use threads and add records. Sleep the thread and so on...


SCJP1.4
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
i am not asking about java programming i am asking about query
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"query"? I'm not sure I follow what you are asking here.

For enormous amounts of data most RDBMS's include some sort of bulk loading application. Consult your database documentation to see what it provides. This is also where you will find suggestions on improving performance.

There are general rules you can follow to speed things up. The most obvious is to remove any indices on the table before starting the bulk load. Other things include multi-threading the load, if your loader tool supports this.
[ September 18, 2006: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add 50 million records in a table?