Find out exactly what these eight MySQL knowledge, the interviewer must think you are very NB (recommended collection)

In the database usage survey in the first half of this year, we collected a large number of well-known Internet company's database usage, where foreign GitHub, Airbnb, Yelp, Coursera are using MySQL database, Alibaba China, where to network, Tencent Meizu, some key business Jingdong also uses MySQL database. At the same time, but also many MySQL database ranking first single, the first-tier developers and Internet companies are using open-source database, you know how much?

Share a sort of Java programmers usually learn today MySQL essential study documents, regardless of this document is to understand MySQL developers and friends are just learning a very good content, but also the selection of the document review interviews ! Also prepared a current Internet's Java interview interview knowledge of high-frequency documents free for everyone to share!

The MySQL Knowledge finishing the document include:

  • Affairs
  • lock
  • SQL optimization principles
  • JOIN
  • Implementation plan and implementation details
  • Implementation process
  • The impact on the performance of the table structure
  • index

Affairs

  • characteristic
  • classification
  • Isolation Levels

lock

  • lock
  • latch <Lightweight locks, the lock time is very short, for operating the critical resource>
  • Consistent non-locking read
  • Consistency read lock
  • Deadlock

SQL optimization principles

  • Select the desired optimization of SQL
  • Explain to start and Profile
  • Always with a small set of results driven large result sets
  • Complete ordering in the index
  • Minimum Columns
  • The most effective use of filters
  • Avoid complex JOIN and Subqueries

JOIN principle

  • JOIN principle
  • JOIN optimization principles of

Implementation plan and implementation details

  • Explain
  • Profiling

index

  • Types of
  • method
  • create

The impact on the performance of the table structure

  • Redundant data processing
  • Demolition of a large table small table
  • Show a more rational structure of the table on demand
  • Isolated as small tables common attributes

Implementation process

  • Query Cache
  • Parser generator parse tree
  • Pretreatment parse tree is generated again
  • Query Optimizer
  • Query execution plan
  • Query execution engine
  • Data query returns results

MySQL optimization study notes thinking

Welcome to public concern number "old boy's growth path"; selection of dry goods continued weekly, finishing some of the information will be shared out in public No.

Guess you like

Origin juejin.im/post/5dff77206fb9a0164c7bb192