﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex的个人Blog &#187; mysql</title>
	<atom:link href="http://www.gemini5201314.net/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gemini5201314.net</link>
	<description>关注数据仓库,商业智能和八卦</description>
	<lastBuildDate>Mon, 28 Nov 2011 12:04:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>7种提高Mysql 数据插入的方式</title>
		<link>http://www.gemini5201314.net/mysql/7%e7%a7%8d%e6%8f%90%e9%ab%98mysql-%e6%95%b0%e6%8d%ae%e6%8f%92%e5%85%a5%e7%9a%84%e6%96%b9%e5%bc%8f.html</link>
		<comments>http://www.gemini5201314.net/mysql/7%e7%a7%8d%e6%8f%90%e9%ab%98mysql-%e6%95%b0%e6%8d%ae%e6%8f%92%e5%85%a5%e7%9a%84%e6%96%b9%e5%bc%8f.html#comments</comments>
		<pubDate>Wed, 01 Apr 2009 12:47:16 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[insert]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/mysql/7%e7%a7%8d%e6%8f%90%e9%ab%98mysql-%e6%95%b0%e6%8d%ae%e6%8f%92%e5%85%a5%e7%9a%84%e6%96%b9%e5%bc%8f.html</guid>
		<description><![CDATA[1) 使用 LOAD DATA INFILE , 这种读入文本文件的方式会比普通的insert 语句快很多(10 倍以上) &#160; 2) 使用批量插入 insert into xxx_table (xxx_column) values(x1,x2,x3),(y1,y2,y3),(z1,z2,z3); &#160; 3) 对myisam tables 开启 concurrent inserts concurrent_insert global 变量用来控制并行插入的，默认是1，如果设成0表示不用并行插入, 如果设成2表示即使表有删除的数据，也可以并行插入到表的末尾. 使用set global concurrent_insert = 1. &#160; 4) use insert delayed 这个文档上写的很清楚了. 当你不用等待插入完成的时候，尤其是记录logging 并且你同时要使用会运行很长时间的select 或update 语句的时候.当你使用insert delayed 服务器会马上返回, row 会被排进队列，直到table 没有被其他人使用. insert delayed into xxx_table(xxx_column) values (x1,x2,x3) &#160; [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/mysql/7%e7%a7%8d%e6%8f%90%e9%ab%98mysql-%e6%95%b0%e6%8d%ae%e6%8f%92%e5%85%a5%e7%9a%84%e6%96%b9%e5%bc%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

