<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	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>select - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/select/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Wed, 04 Sep 2013 09:09:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Hive的SELECT时，打印列名，以及key value显示</title>
		<link>https://www.coder4.com/archives/3962</link>
					<comments>https://www.coder4.com/archives/3962#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 04 Sep 2013 09:09:47 +0000</pubDate>
				<category><![CDATA[大数据技术]]></category>
		<category><![CDATA[g++]]></category>
		<category><![CDATA[Hive]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[列名]]></category>
		<category><![CDATA[行]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3962</guid>

					<description><![CDATA[在MySQL中，支持\G，按照key = value的方式显示。 Hive也是支持的，只不过通过参数配置产生。 1、打印列名： set hive.cli.print.header=true; 2、每行显示一个key、value，即\G类似的方式 set hive.cli.print.header=true; set hive.cli.print.row.to.vertical=true; set hive.cli.print.row.to.vertical.num=1;[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3962/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL中随机select记录</title>
		<link>https://www.coder4.com/archives/3445</link>
					<comments>https://www.coder4.com/archives/3445#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 14 Jun 2012 14:38:23 +0000</pubDate>
				<category><![CDATA[数据库技术]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[随机]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3445</guid>

					<description><![CDATA[我有这个需求： 数据库中的uid离散分布不连续，需要随机select某一条记录。 1、最懒做法 select uid, uname from user order by RAND() limit 1 这个非常慢，因为几乎要遍历整个表。 2、用id随机范围。 其实如果我们能得到min(uid)和max(uid)，然后随机这之间的某一个ID，再where &#62;= 就可以了。 首先是获取min和max的uid： select min(uid), max(uid)[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3445/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>关于epoll和select的性能测试</title>
		<link>https://www.coder4.com/archives/163</link>
					<comments>https://www.coder4.com/archives/163#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:38:15 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[epoll]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[并发性能测试]]></category>
		<category><![CDATA[非并发测试]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=163</guid>

					<description><![CDATA[epoll和select是Linux中提供的两种不同模型，epoll的并发性要好于select，那么究竟能好多少呢？我用前两天实现的Echo Server的epoll和select版本做了测试。 首先是非并发情况，就是一个Request完成后再下一个。 我的测试环境，均本地网络，CPU P8600 2.4G 非节能模式，buffer均为16字节，发送的测试数据为30字节左右。 epoll 5k 0.336841 0.341372 0.327373 0.309983 0.348396 10w[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/163/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux下用select()实现异步的Echo服务器</title>
		<link>https://www.coder4.com/archives/130</link>
					<comments>https://www.coder4.com/archives/130#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:58:55 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[异步]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=130</guid>

					<description><![CDATA[本例子使用异步socket（select方法）实现了ECHO服务器程序。 搞了一个晚上，终于弄好了，出现的问题主要如下： 这是最重要的问题！当读取完数据后，需要将数据重新FD_SET进去，特别是serverFd，注意这个testFd意义非常重大，相当于参数传递中的复制行参，需要好好体会。 当read(rd)后，返回为0表示客户端的socket已经关闭，此时除了要FD_CLR，还要关闭fd!!否则fd资源没有被释放，很快就会达到select监听的上限！ [cpp] /* * main.c[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/130/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
