The following describes the features of several common storage engines and compares the differences and recommended usage methods between different storage engines. Features: MyisamBDBMemoryInnoDBArchive storage restrictions: No, 64 TB, no
1. Does MySQL5.1 storage program and function play a role in replication? Yes, the standard behavior executed in the storage program and function is copied from the master MySQL server to the slave server. 2. Can the stored programs and functions
Basic differences:The MyISAM type does not support advanced processing such as transaction processing, whereas the InnoDB type does. MyISAM tables emphasize performance, and the execution speed is faster than that of InnoDB, but transactions are not
MyISAM:The default MySQL plug-in storage engine is one of the most commonly used storage engines in Web, data warehousing, and other application environments. Note: by changing the STORAGE_ENGINE configuration variables, you can easily change the
1. test environment:
Cpu: 2 GHZ
Memory: 2 GB
Lan
Open a persistent connection to construct random query conditions.
2. Test Results
Data volume: 88171
Qps: query per second
Engine type
Domain Name
Cache (qps)
No cache (qps)
51CTO recommended topic: MySQL getting started and proficient in PHP + MySQL video tutorial MyISAM is the default storage engine in MySQL. Generally, not many people care about this. It is a tricky thing to decide what kind of storage engine to use,
1. innodb supports transaction processing, not myisam. Myisam is faster and has better performance. 2. select, update, insert, and delete operations: If you execute a large number of SELECT operations, MyISAM is a better choice for InnoDB: for
Two previous articles, custom session (ii)-database save and why don't I use the session
But then we found that there were problems. The former treatment is practically useless in practice, and the session recycling has to be handled separately. The
First of all, my database and pages are UTF8 encoded, the page code is as follows:
Header ("Content-type:text/html;charset=utf8");
$result = $mysqli->query ("select * from ' Com_class ' where ' id ' =". $_get[' id ']);
if (! ( $result->fetch_row ()
MyISAM is the default storage engine of MySQL. MyISAM does not support transactions or foreign keys, but it has fast access speed and has no requirements on transaction integrity.
The InnoDB Storage engine provides transaction security with commit,
Next let's answer some questions:
◆ Does your database have a foreign key?◆ Do you need transaction support?◆ Do you need full-text indexing?◆ What query mode do you often use?◆ How big is your data?
Thinking about the above questions can help you
Performance Comparison Test of MyISAM and InnoDB table storage structures in MySQLMyISAM table. The MyISAM storage format is the default type in MySQL since MySQL version 3.23. It has the following features:■ If the operating system itself allows
MyISAM
MyISAM is the default storage engine of MySQL. MyISAM provides a good solution to the performance and features. Features include full-text indexing, compression, and GIS functions. MyISAM does not support transactions and row locks.
Storage
Introduction to the primary storage engine
1, InnoDB storage engine
InnoDB is the default transaction engine for MySQL, which is designed to handle a large number of short-term (short-lived) transactions. Unless there are very specific reasons to
In the process of using MySQL, there are some questions about the concepts of MyISAM and InnoDB, and the difference between the two engines has always been a question in my mind. To solve this puzzle, we searched the network and found the following
MyISAM is the default storage engine for MySQL. MyISAM does not support transactions or foreign keys, but it is fast to access and does not require transactional integrity.
The InnoDB storage engine provides transaction security with commit,
Provides MySQL with transaction security (acid-compatible) storage engine with Commit, rollback, and crash recovery capabilities. InnoDB locks the row level and also provides an oracle-consistent, unlocked read in the SELECT statement. These
The 1th way to invoke the storage engine is to invoke the new handler instance.
Before defining Handlerton in the storage engine source file, you must define a function header for function instantiation. Here are 1 examples from the CSV engine:
Some of the limitations described in this article apply to all storage subroutines, that is, stored programs and stored functions. Some restrictions apply only to stored functions and not to stored programs.
All restrictions on the storage function
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.