Performance problems in developer's eyes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.