Mysql memory engine cache and file cache, which is more efficient

Source: Internet
Author: User
Mysql memory engine cache and file cache, which is more efficient session?

Data is stored by file hard disk by default. ---> hard disk
Change to mysql memory engine storage ----> Memory

Regardless of other factors, which of the two solutions is faster?

Hard disk <memory;
File> mysql;

What is the final result ?! Special request.





Reply to discussion (solution)

The latter!
In this case, you will know the actual comparison.

Static file cache is definitely more efficient .. The actual usage depends on the specific situation, and sometimes the memory cache is good.

I am also curious, static pages, the whole page is cached to the server, the data is read through the TXT existing server, and read from the database. What is the speed sorting of these four methods?

No comparability

1. the static page is directly returned by the server without php processing.
2. the entire page is cached on the server and is only read and output by php (no other action)
3. store the TXT file on the server for further reading and reading from the database.
Both methods require php to read and analyze and process data.
The database table is also a file
So the two are equivalent

Understand .....

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.