Anti user accidentally deleted, spend a week to add to the DeleteMark flags, any file you delete from "physically remove" to "tombstone" ...

 

With a starting point of DeleteMark:

1: Although delete prompt on the screen, but the customer erroneous deletion of a packet of data and want to recover deleted data is particularly difficult, some people have an analogy, if the input data of the workload, 1 use the analogy, that recovery workload data accidentally deleted, is likely to be 100, so even if there is prompt to delete the interface, customers confirm the deletion, but still have room for saving data is safety practices.

 

2: Write great program, customers used for several years, the speed of the program is also fast, the database is also very streamlined, very difficult to receive maintenance fees, there was a big customer, with nearly 10 years of software are good, the customer never non-payment of maintenance fees, you have no way to pick-up maintenance costs, because the program write too lean, the past 10 years, I do not know how much money lost, find many things could have received maintenance costs, it was messed up, If the log files are generated every day, all deleted data in the database, which is 10 years down the database will become very large, the software runs on natural speed down, customers are willing to pay maintenance fees, data retention, but it also not a bad thing, to prevent the event of a problem, there can recover protection.

 

 

 

After setting the DeleteMark flag, the workload of the program is mainly reflected in:

A: need to adjust the database structure design, all classes need to regenerate (use code generator to generate something pretty good, so that the design and actual synchronous very difficult).

B: All data selection method will need to add DeleteMark = 0 determination condition.

C: All business logic, need add DeleteMark = 0 determination condition.

D: Delete all the methods, need to be modified, used to be a direct delete operation, now is a pseudo deleted, just marked with a deletion flag.

 

Since the function point of the program is also relatively more, usually on management, work there are many things to do, so this increase DeleteMark spent one week sign a full time, in fact, a lot of things to talk about on the mouth is very simple, but really need to go do, but so little improvement, often takes a lot of effort, time, to do, to rise to a higher level.

 

 

 

Reproduced in: https: //my.oschina.net/iwenr/blog/227727

Guess you like

Origin blog.csdn.net/weixin_34038652/article/details/91674627