MySQL Memory table + temp Table

Source: Internet
Author: User

Temp table: Table in memory, data in memory.

Memory table: Table on disk, data in memory.

Modify the size of the staging table and memory table in the My.cnf file:

[Mysqld]
   # Memory Table capacity
  max_heap_table_size=1024m
  # temp Table capacity
  tmp_table_size=1024m

< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; font-size:14px; line-height:25px; Text-align:left; " >< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; font-size:14px; line-height:25px; Text-align:left; " > create:

< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; font-size:14px; line-height:25px; Text-align:left; " >< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; font-size:14px; line-height:25px; Text-align:left; " > memory table:  Note engine is memory

CREATE TABLE coldtest_vardata (   int(one) auto_increment,   varchar(255  ) ENGINE=DEFAULT CHARSET=UTF8 Row_format=

< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; font-size:14px; line-height:25px; Text-align:left; " >< Span style= "FONT-FAMILY:HELVETICA,TAHOMA,ARIAL,SANS-SERIF; font-size:14px; line-height:25px; Text-align:left; " > temp table:

    Create temporary table TMP1 (ID int not NULL);

RELATED links:

http://blog.csdn.net/feihong247/article/details/7847722//temporary tables and memory tables

http://blog.chinaunix.net/uid-16844903-id-3026988.html//temporary tables and memory tables

MySQL Memory table + temp Table

Related Article

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.