Recently I came across a MySQL page optimization test case, and did not very specific description of the test scenario, gave a classic solution. Because...
The purpose of database locking: a rule designed to ensure data consistency and order the concurrent access of shared resources. For any kind of database...
0 x00 preface While the previous article briefly introduced several commonly used data models, this article will provide an in-depth understanding of the most common...
1. Fields that need to be used in one-to-many or many-to-many objects in serialization: 2. Fields that need to be used in one-to-many or many-to-many...
When a UNIQUE constraint is created, a UNIQUE non-clustered index is created by default to enforce the UNIQUE constraint. If there is no clustered index...
Last week, technical support reported that a customer query operation took about 6.1 minutes. After following up the code, the simplified database query still had...
Partitioned views are views defined by using UNION ALL on member tables that have the same structure but are stored separately as multiple tables in...
When a PRIMARY KEY constraint is created, a unique clustered index is automatically created for one or more columns if no clustered index exists for...
At present, the popular implementation of open source database sharding is based on THE rewriting, distribution and result merging of SQL. This paper tries to...
Object-oriented programming has been all the rage for years, functional programming has made waves from time to time, and imperative and declarative programming has been...
Run the SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED command to specify the locking LEVEL of the session. Only one isolation level option can be set...
Former IBM employee, now BAT big data engineer, has been engaged in the construction of data warehouse system and has unique insights, especially good at...
Since the company wants to implement the chat function in the APP, after spending a period of time to understand the implementation of this function,...
When IMPLICIT_TRANSACTIONS is ON, the system is in implicit transaction mode. This means that if @@TranCount = 0, any of the following Transact-SQL statements will...
This article is based on huang Yan's speech delivered at the 2018 MySQL Technology Exchange Conference in Shanghai on August 3, 2018. Huang Yan aikesheng...
2017.12.11 update TheSecretLifeofSQL: HowtoOptimizeDatabasePerformancebyBryanaKnight query performance is low because so much is access to the data table more connections
Therefore, the SQL structure of multi-table subqueries needs to be optimized. You can see that the values of both the name and product_unit columns can...