MySQL 20W data 1G size with like odd slow, seek solution.
$sql =select * ' from ' the text ' where ' title ' Like '%bbd% ' limit 0,10
$sql =mysql_query ($sql); In less than 1 seconds.
But to ask like to get the total number is very slow 10 seconds
1, what is the storage engine?
Data in MySQL is stored in files (or memory) in a variety of different technologies. Each of these technologies uses different storage mechanisms, indexing techniques, locking levels, and ultimately provides a wide
Let us answer some of the following questions:
Do you have a foreign key in your database?
Do you need business support?
Do you need full-text indexing?
What kind of query mode do you often use?
How big is your data?
Thinking about these issues
introduction of Data EngineInMySQLIn 5.1, MySQL AB introduces a new plug-in storage engine architecture that allows the storage engine to be loaded into the new MySQL server being shipped.Use the MySQL plug-in storage engine architecture to
The basic difference between MyISAM and InnoDB
The fulltext type index is not supported for 1.InnoDB.
The number of rows in the table is not saved in 2.InnoDB, that is, when the select count (*) from table is executed, InnoDB scans the entire
People who have developed database-driven small web applications with MySQL know that creating, retrieving, updating, and deleting tables for relational databases is a simpler process. In theory, as long as you have the most common use of SQL
MyISAM: This is the default type, which is based on the traditional ISAM type, and ISAM is the abbreviation for indexed sequential access method (indexed sequential access methods), which is the standard way to store records and files. Compared with
Use of the mysqldump command
1. Export all libraries
System command Line
Mysqldump-uusername-ppassword--all-databases > All.sql
2. Import all libraries
MySQL command line
Mysql>source All.sql;
3. Export some libraries
System command Line
4.2 MySQL Query optimization programWhen you publish a query that selects rows, MySQL analyzes it to see if it can be optimized to make it perform faster. In this section, we'll look at how the query optimizer works. For more information, refer to
Every so often people ask me the question how should they the estimate memory consumption by MySQL Server in given Configurati On. What is the formula they could use.
People often ask me how to estimate memory consumption when I configure MySQL. So
Key_buffer_size -This is very important for the MyISAM table. If you are using only the MyISAM table, you can set it to the 30-40% of available memory. A reasonable value depends on the size of the index, the amount of data, and the load.Remember,
First, SQL optimization
1. Optimizing SQL General Steps
1.1 Viewing SQL Execution frequency
SHOW STATUS like ' com_% ';
Com_select: The number of times the select operation was performed, with one query accumulating 1. Other similar
The following
Introduction to Essentials1. Introduction2. Data Files3. log Files1. IntroductionThere are at least two operating system files per MYSQL database: One data file and one log file.Data files contain data and objects, such as tables, indexes, stored
The index condition push (ICP) is an optimization of how MySQL uses an index to retrieve rows from a table. Without an ICP, the storage Engine traverses the index to find rows in the base table and returns them to the MySQL server, which evaluates
http://blog.csdn.net/xiaoyu714543065/article/details/8211265A transaction has four characteristics: atomicity (atomicity), consistency (consistency), isolation (isolation), and persistence (durability). These four properties are referred to as ACID
1 Database Basics1. Data abstraction: Physical abstraction, conceptual abstraction, view-level abstraction, internal mode, pattern, outer modeDatabase system Level Three abstraction refers to:
View-level abstraction: Abstract the real world
1. MyISAM: The default table type, which is based on the traditional ISAM type, ISAM is an abbreviation for indexed sequential access method (indexed sequential access methods), which is the standard way to store records and files. It is not
Today in the execution of the Oracle database migration to the MySQL database The Times has an error message: Long bytesBaidu found that the original need to change the MySQL database storage engine for InnoDB, query the current storage engine
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.