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

Source: Internet
Author: User
Session

The default is to use the file hard disk to store data; ---> HDD
If you change to MySQL memory engine storage----> Memory

Regardless of other factors, what is the speed of these two options, only in terms of efficiency?

HDD < memory;
File > mysql;

The end result?! Special Ask.





Reply to discussion (solution)

Latter!
This, you'll know when you actually compare it.

The static file cache is definitely more efficient. The actual use of which also depends on the situation, sometimes with memory cache is also good

I am also curious that static pages, the entire page cache to the server, the data through the TXT presence server re-read, and read from the database. What are the four kinds of ways to sort?

No comparability

1 static pages are returned directly by the server and not processed by PHP
2 entire page cache to server only read and output by PHP (no other action)
3 data is re-read through the TXT presence server and read from the database
Both of these methods require PHP to read and analyze processing data
The tables of the database are also files
So the two are quite

Got it.....

  • 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.