Home > database > Oracle batch update one million data
Oracle batch update one million data
Time:10-05
Table A id, usedspace Table B resourceId, filesize
Condition watch Anderson, d=B.r esourceId
Eligible table B may have multiple data article may also be 0
Is to conform to the conditions of the fileSize updates to the table in table B of A usedspace field
Script before it's better when tens of thousands of data, but data on the hundreds of thousands of millions of deadlock, could you tell me how to deal with, this batch of high efficiency will be updated with what way? The small white one, write, the great god more troubles,
CodePudding user response:
With the primary key of the table A batch update, such as A 10000 lines, most updated finished immediately submitted once; Come again next, until finally;
CodePudding user response:
Good stroke business requirements
More and more data, every time is a full table updates? Or can be part of the update? Update operation whether can consider free is on business, such as in the evening?
CodePudding user response:
Or, starting from the requirements of What are the requirements for the frequency of the update, how long the update time, How long will b table filesize change once,
CodePudding user response:
Update is 1 day, can in the evening, and then every day needs to be updated full table
CodePudding user response:
B table filesize changes of the time, only in the evening for a settlement