In projects, we often face product performance problems. However, these problems are not easy to solve. Most performance problems are rooted in system architecture or design issues. It is impossible to overturn redo. It is the right way to learn from these problems. Let's take a look at the design problems I encountered.
Case: enterprise-level application systems, the technology uses the JSF database Oracle. The homepage scope is too slow, about half a minute.
There are many problems, mainly including:
1. The database design strictly complies with the paradigm design, resulting in many table associations. Most page data needs to be obtained from at least 10 tables.
2. The JSF component tree is too large.
3. Code redundancy logic, a large amount of unnecessary processing.
How can this problem be solved?
1. For the first question, I would like to learn more about database design and how to write efficient SQL statements. I recommend a book on SQL anti-pattern to guide the database design. After all, most application systems require database support. When writing SQL statements, consider whether this SQL statement is optimal. Senior programmers should have some knowledge about SQL optimization. Www.2cto.com
2. At the initial stage of designing and developing an application system, you need to know more about the technical deficiencies you have selected and try to avoid the problems caused by technical deficiencies. After all, any technology has its own advantages and disadvantages. For example, question 2: Minimize the component tree or use facelet to build the UI.
3. Question 3 is purely a programmer's personal problem and Team process problem. Whether in any way, such as test-driven Pair programming, the process is a process after all. the individual qualities and accomplishments of programmers are the guarantee of the overall product quality. I believe that finding a suitable programmer to make him like or have a sense of identity with the products he develops is the best solution. If you are not interested in what you do, you can rely on the process to ensure a few problems, rather than high-quality products.
The above is my opinion. Welcome to other idea. Thanks