mysql記憶體表+暫存資料表

來源:互聯網
上載者:User

標籤:

 

暫存資料表:表在記憶體裡,資料在記憶體裡。

記憶體表:表在磁碟裡,資料在記憶體裡。

 

  my.cnf檔案中修改 暫存資料表和記憶體表的大小:

  [mysqld] 
  # 記憶體表容量 
  max_heap_table_size=1024M 
  # 暫存資料表容量 
  tmp_table_size=1024M

 

建立:

  記憶體表:  注意引擎是memory

CREATE TABLE coldtest_vardata (   Id int(11) AUTO_INCREMENT,   name varchar(255) ) ENGINE=MEMORY DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; 

 

 

 

  暫存資料表:

    create temporary table tmp1(id int not null);

 

 

 

相關連結:

  http://blog.csdn.net/feihong247/article/details/7847722  //暫存資料表和記憶體表

  http://blog.chinaunix.net/uid-16844903-id-3026988.html  //暫存資料表和記憶體表

mysql記憶體表+暫存資料表

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.