Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add 50 million records in a table?

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use threads and add records. Sleep the thread and so on...
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not asking about java programming i am asking about query
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic