Page 1 of 1

Huge data

Posted: Fri Oct 17, 2008 8:35 am
by sheema
We have a huge table with around 100000000 rows,now we get weekly file,which has to be updated or inserted to this table.What would be the best approach to get this done.
We load the file into a temprary table, should we have a procedure to delete all the rows in the file and again load the rows in a file to the table.
Which method would be performance efficient.

Thanks in advance

Posted: Fri Oct 17, 2008 8:45 am
by chulett
Not sure I'd call that "huge". :wink:

What database? What's the typical ratio of inserts v. updates, any clue?

Posted: Fri Oct 17, 2008 8:49 am
by sheema
Oracle is the database,not sure of the inserts vs updates.

Thanks

Full Refresh

Posted: Fri Oct 17, 2008 9:41 am
by Nagaraj
For Temp Table Use Full Refresh, Write a small script to truncate the temp tables, and run the full refresh job, configure all this in a sequence.

For Upsert user Upsert Mode in oracle EE stage target.

i think it should be very simple jobs.

Please let me know if you need further information.

Posted: Fri Oct 17, 2008 10:02 am
by chulett
Server job, so no "EE" stage.

How big is this weekly file? That size and the ratio of inserts to updates (which is important to know) will drive the design.

Posted: Fri Oct 17, 2008 10:25 am
by sheema
The weekly file is around 28 million,the no of updates are more than the updates.(the ratio is around 90:10).


Thanks

Posted: Fri Oct 17, 2008 10:26 am
by sheema
The weekly file is around 28 million,the no of updates are more than the updates.(the ratio is around 90:10).


Thanks

Posted: Fri Oct 17, 2008 10:41 am
by chulett
"the no of updates are more than the updates". :?

Posted: Fri Oct 17, 2008 10:43 am
by sheema
sorry,the no of updates are more than inserts.

Posted: Mon Oct 20, 2008 8:16 am
by sheema
can someone shed some light on this.

Thanks

Posted: Mon Oct 20, 2008 8:18 am
by chulett
Your DBA. Have a chat with them and then let us know what approach they recommend and we'll see about helping you implement that in DataStage.

Posted: Mon Oct 20, 2008 8:42 am
by sheema
Thank you, I will contact the DBA and get back.