I. Why should I enable this query? Databases are prone to bottlenecks. Now Nosql is so popular that it is estimated that they are all depressed by databases. The statements that affect the query speed in mysql are very slow. These slow statements
In the previous article, we learned the basic data CURD method, but in more cases, due to the difference in business logic, CURD operations are often not that simple, especially under complicated business logic, this is also a shortcoming of the
Opening query statement caching is also a strategy to optimize MySQL.
MySQL is a common database for our development programs. It has the ability to cache common query statements in memory, so that when a given query statement is invoked again,
thinkphp query Language with coherent operation can be very good to solve the complex business logic requirements, this article we first to in-depth understanding of the framework of the query language.
1. Query Language Introduction
thinkphp
In the previous article we have mastered the basic data curd method, but in more cases, due to the differences in business logic, curd operations are often not so simple, especially complex business logic below, this is the ActiveRecord mode of
The programs we write may require a large number of database operations. Databases are often the cause of bottlenecks.
Opening query statement caching is also a strategy to optimize MySQL.
MySQL is a common database for our development programs.
Operation 3: Enable slow query logs for mongodb and mysql, start mongodb from the configuration file, and enable mongodbmysql
1.
Start mongodb from the configuration file
Create a configuration file:/usr/local/mongodb/etc/mongodb. conf
The
35. use SQL query analyzer and SQL profilerUse SQL query AnalyzerUse SQL profilerOptimize T-SQL statementSummaryIn this chapter, we will continue with the description of the pre-stored procedures in Chapter 21st. This chapter describes how to use
The statements that affect the query speed in mysql are very slow. These slow statements may be written improperly or the Combined Query of multiple tables in big data, therefore, we need to find these statements, analyze the causes, and optimize
In linux, mysql enables slow queries. mysql statements that affect the query speed are slow, it may be that the write is not reasonable or the multi-table joint query in big data, etc. Therefore, we need to find these statements, analyze the causes,
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.