Mysql database sharding application scenarios and design methods, mysql database sharding
Many of my friends asked me in the Forum and in the message area when mysql was required to perform database/table sharding and what design method was the best choice. Based on these qu
Recently in learning database design suddenly be conscious of the understanding of some ideas, horizontal design, vertical design, this is probably to meet the first few paradigms I don't quite understand, but I want to summarize some experience in my own way.
The total well-known data table is a ' row ' and ' column
the use of meaningless fields (logical primary key) or meaningful fields (business primary key). Individuals tend to "logical primary key", the reason is that the design of the database model structure clear, the relationship between clear, often more in line with the "third paradigm" (although not intentional, hehe). And it's easier to avoid "federated primary Keys", and you can use index-efficient field
11 Database Design Guidelines and 11 database guidelines I have followed
Author Shivprasad koirala, a former MVC engineer from Microsoft ASP/ASP. NET, is now a CEO in India. If you have any questions about the first translation, please kindly advise.
Introduction
Before reading this article, I want to tell you that I am not a master of
schema design of database table with tree-shaped structure
In the process of programming, we often use the tree structure to characterize the relationship of some data, such as Enterprise's subordinate departments, column structure, commodity classification and so on, usually, these tree-like structures need to use the database to complete the persistence. Howev
Java Bookstore System Project functional Requirements:
1, can carry out the operation of the user registration, modify basic information, delete and query.2. The basic information of the book can be added, deleted, modified and query operation.3, can fill in the purchase list, a purchase order with a number of specific purchase information, purchase books must be books management inside already have;4, can fill out a sales list, a sales list with a n
Tags: information memory dependent steps technology sharing comparison must be good aboutObjective of this book: Understand the basic concepts and paradigms of a database Familiar with SMSS, T-SQL implementation of the database, build tables, add constraints Mastering T-SQL programming for powerful queries Master Creating indexes, views, quick access to databases Be familiar with creating stored procedures
Database design and database creation
Everyone has a martial arts dream. We all envy Qiao Feng, who owns the 18 OPs of the dragon army, Zhang Wuji, who has the power and power of jiuyang, Ling wuchong, who has the power of yijinjing and exclusive jiujian, and envy the legendary lone man for defeat ......
In fact, there is a common secret to their success: they al
this class in the class (the final keyword, etc. have learned, is the ultimate meaning, hehe)Private Finla Static single =new single ();Provides a public access method that can be obtained to the class objectpublic static single getinstance () {return single;}The lazy type of the single case design patternobject is initialized when the method is called, or deferred loading of the objectSingle class into memory, the object does not exist, only the obj
Singleton mode is a kind of common software design pattern. In its core structure, there is only one special class that is called a singleton. The singleton mode ensures that the class with the pattern can have only one instance of the class that is used in the system. That is, a class has only one instance of an object.To implement a singleton in Java, you must understand the
Tags: var mysq detailed char BSP strong ext Arc MysI. Physical design core tasks and key details Second, the physical design experience 1. Data type design: Suggested field data type definitions are combined with the following points (for example, MySQL) 1) does not use image, and uses varbinary, etc. 2) do not use text and ntext, and use varchar or nvarchar 3)
transaction management
4
How database is connected
Jdbc/datasource
Jdbc/datasource
5
Support Database
Most databases such as Oracle, SQL Server, MySQL
Most databases such as Oracle, SQL Server, MySQL
6
Design Patterns
Command mode, observer mode, etc.
7
Internal Service Comm
Java Singleton design pattern, there are many ways to implement, the following describes some of the more famous implementation methods
A Hungry man typeThis design pattern is simple, and there is no multi-threading security problem, which is generally used in practical development.
Class Hungerydemo{private Hungerydemo () {}private static final Hun
Transport Method table (Shipmethod) is determined according to the relationship that should be in the actual business operation, so the database system structure design is suitable for the informatization of the business operation.
Figure 3-6 Example of a relationship between tables in a business database
Through the 3.1 section of the transaction processing
I am a newbie. I have been confused for a long time. Today I decided to ask you the correct or common practices. Here is a simple example: id, title, content ,...... Label table: id. The two tables above the title obviously require auto-incrementing IDS as the primary key to ensure uniqueness. Design 1 next... I am a newbie. I am confused about this question for a long time. Today I decided to ask you the correct or common practices.
A simple example
Design and Implementation of multi-user permission Control for Web application systems-database design [2]: multi-user permission Control
To build a Web permission Configuration System, you need the following five data tables: Personnel table, group table, page table, directory table, and Operation permission table. The IDS used in each data table are the IDs of
ultimately address performance issues.Once a research and development colleague to help it optimize SQL, found that its business needs are tens of millions of of data to sort the page and then take the top, a few 10 seconds can not return the results, it is recommended to remove the sorting, is told that some of the data needs to be prioritized, and this part of the need to prioritize processing of very few, The final solution is to split the priority data out of a separate program for processi
: Interface high cohesion is internally highly dependent and isolated as much as possible. That is, the method of internal declaration of an interface is related to a sub-module, and is required by this submodule.
Interface design is limited: If you fully follow the principle of interface separation, there will be a problem, that is, the design of the interface will be less and less, so that the number
The singleton pattern is a specific design pattern that I have heard since I knew the noun of the design pattern. Its usage scenario is that there are some key resources that allow only one instance to be generated. If more than one instance is generated, there will be a lot of disruption to our reality.Here are a few points I've summed up in the course of reading:
Ensure that a class has only one
Relationship Type: Mysql, Oracle
non-relational: Mongodb, Redis
Database Design
Reduces data redundancy, avoids data maintenance anomalies, saves storage space, and efficiently accesses
Design Steps
Requirements Analysis: What the data is, what attributes it has, the characteristics of the data and attributes (storage features), and the lifecycle of the data
Lo
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.