SQL anti-Pattern Learning Note 1 Opening

Source: Internet
Author: User

What is "anti-pattern"

Anti-patterns are a way of trying to solve a problem, but they often cause other problems at the same time.

Anti-Pattern classification

(1) Logical Database design anti-pattern

Before you begin coding, you need to decide what information is stored in the database and how best to organize and correlate the data.

This includes tables, fields, and relationships for how to design a database.

(2) Physical Database design anti-pattern

Once you have identified what data you need to store, you can implement database management as efficiently as possible using the RDBMS relational database technology features you know.

This includes defining tables and indexes, and selecting data types. It also needs to be a "data definition language" for SQL, such as the CREATE TABLE statement.

(3) Query anti-pattern

SQL queries are done using the data manipulation language, such as Insert, Select, UPDATE, and DELETE statements.

(4) Application development anti-pattern

SQL should be used in applications built in Java,. Net, C + +, and PHP, and the way SQL is used in applications is good and bad.

Anti-pattern decomposition

(1) Purpose

This is the task you may want to try to solve. Intent to use anti-patterns to provide solutions, but usually ends up with more problems.

(2) Anti-pattern

This section describes the nature of the solutions that are commonly used, and shows the consequences that are not foreseen, which make these solutions anti-patterns.

(3) How to identify anti-patterns

Some fixed ways will help you identify the anti-patterns used in your project. The special obstacles you encounter, or the things you say to yourself and others,

Can make you recognize the anti-pattern in advance.

(4) Rational use of anti-patterns

There are always exceptions to the rules. In some cases, the design that was supposed to be anti-patterns might be justified, or at least the most plausible of all.

(5) Solutions

Describes the best solution of choice, not only to solve existing problems, but also not to cause new problems caused by anti-patterns.

SQL anti-Pattern Learning Note 1 Opening

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.