Home > database > For full scale increment table design
For full scale increment table design
Time:10-03
Table structure (A.B.C, SRC, time)
Constraints are as follows:
Src the source, the time, said the latest time, full scale is 1 billion records, there is an index on a, logically. A, b, c is the only sure a record, how to design Business requirements:
Daily amount of SRC have different sources about millions of data, using the data in the daily increment in the table, and then to update the inventory, then insert, if the same source under the SRC A.B.C just update the same time, the operation time can be long, seek expert advice on what to do
CodePudding user response:
Logically. A, b, c only determine a record
PK is built on the three fields,
Use the merge updates;
CodePudding user response:
Given the amount of data is too large, can consider to use partition table
CodePudding user response:
A, b, c three establishing uniqueness constraints, or PK. If need to establish a range SRC number less than 4000 partition table;
CodePudding user response:
The time interval partition
CodePudding user response:
If it's not Oracle with what big data form, redis? It should be a, b, c, the only sure a record under the same source