Hi, I'm here trying to get back to life :) I won't make a long intro, let's start...
Data centric applications are widely used. Maintenance can be a piece of cake or a source of pain. Some people tend to break the rules, doing a nasty design that just works for the moment but fails later. Adding more features or maintaining existing ones brings a lot of headaches like inconsistent data and broken constraints. The problem gets bigger when there is no documentation.
So, please do it right... don't depend on people who come after to review your work and correct it. Keep it clean so they can make further improvements, instead of letting them still trapping bugs.
The following tips, though basic & simple, but IMPORTANT. People doing the maintenance feels them by heart.
Finally, Please do it right.. If you have further tips, add them in the comments.
Data centric applications are widely used. Maintenance can be a piece of cake or a source of pain. Some people tend to break the rules, doing a nasty design that just works for the moment but fails later. Adding more features or maintaining existing ones brings a lot of headaches like inconsistent data and broken constraints. The problem gets bigger when there is no documentation.
So, please do it right... don't depend on people who come after to review your work and correct it. Keep it clean so they can make further improvements, instead of letting them still trapping bugs.
The following tips, though basic & simple, but IMPORTANT. People doing the maintenance feels them by heart.
- Enforce Primary Key (PK) and Foreign Key (FK) Constraints:
- Don't rely on users to do things right:
- Use the appropriate data types:
- Use stored procedures and functions when appropriate:
- Use the right trigger on the right objects:
- Avoid redundant data:
- Documentation:
- One big query or Many small queries:
Finally, Please do it right.. If you have further tips, add them in the comments.
No comments:
Post a Comment