<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for 无言独上西楼，就菊花古剑和酒，醉里挑灯看剑。问明月，我是谁。</title>
	<atom:link href="http://sybaseclub.org/blogs/flybean/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://sybaseclub.org/blogs/flybean</link>
	<description>Flybean&#039;s personal blog</description>
	<lastBuildDate>Fri, 09 Mar 2012 23:52:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on 强制使用索引的模糊查询 by flybean</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/04/16/%e5%bc%ba%e5%88%b6%e4%bd%bf%e7%94%a8%e7%b4%a2%e5%bc%95%e7%9a%84%e6%a8%a1%e7%b3%8a%e6%9f%a5%e8%af%a2/comment-page-1/#comment-86</link>
		<dc:creator>flybean</dc:creator>
		<pubDate>Fri, 09 Mar 2012 23:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=280#comment-86</guid>
		<description>补充一下，场景二中，ase 12.5.4也是采用的索引加数据页直接读取方式。在刻意的设计中，是不用去读取数据页。</description>
		<content:encoded><![CDATA[<p>补充一下，场景二中，ase 12.5.4也是采用的索引加数据页直接读取方式。在刻意的设计中，是不用去读取数据页。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 强制使用索引的模糊查询 by flybean</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/04/16/%e5%bc%ba%e5%88%b6%e4%bd%bf%e7%94%a8%e7%b4%a2%e5%bc%95%e7%9a%84%e6%a8%a1%e7%b3%8a%e6%9f%a5%e8%af%a2/comment-page-1/#comment-85</link>
		<dc:creator>flybean</dc:creator>
		<pubDate>Fri, 09 Mar 2012 23:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=280#comment-85</guid>
		<description>测试时，刻意选择的条件是确保结果集为空。我不认为场景二强制使用了不该使用的牵引。在实际上，对于索引列的like ，Oracle 和db 2，以及ase 15都使用了索引+直接读取符合条件的数据页方式。。</description>
		<content:encoded><![CDATA[<p>测试时，刻意选择的条件是确保结果集为空。我不认为场景二强制使用了不该使用的牵引。在实际上，对于索引列的like ，Oracle 和db 2，以及ase 15都使用了索引+直接读取符合条件的数据页方式。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 强制使用索引的模糊查询 by Zhang Jin</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/04/16/%e5%bc%ba%e5%88%b6%e4%bd%bf%e7%94%a8%e7%b4%a2%e5%bc%95%e7%9a%84%e6%a8%a1%e7%b3%8a%e6%9f%a5%e8%af%a2/comment-page-1/#comment-84</link>
		<dc:creator>Zhang Jin</dc:creator>
		<pubDate>Fri, 09 Mar 2012 03:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=280#comment-84</guid>
		<description>上面的分析，明显忽略了一个问题。

场景1用的是LRU内存策略，场景2用的是MRU内存策略。

不断的通过索引去数据页里面读记录，读回来放在内存页链的右端，然后很快就因为aged out挤占出内存，以后需要到同一页面的其它行的内容时，又重新去读一次，产生的IO自然就高了，高几倍也很正常。

LRU和MRU的策略选择，对ASE 来说是自动的。简单来说，当优化器认为这个语句要读很多的数据，而执行完这个语句之后这些内容可能又很可能不会被其它语句用到；假如继续选用LRU策略的话很可能会让大多数热点数据被挤占出去导致整个系统的内存命中率下降，那么这个时候就会选用MRU策略。

场景2里面，优化器选用MRU本身不是问题，导致问题的是强制使用了一个不该使用的索引。</description>
		<content:encoded><![CDATA[<p>上面的分析，明显忽略了一个问题。</p>
<p>场景1用的是LRU内存策略，场景2用的是MRU内存策略。</p>
<p>不断的通过索引去数据页里面读记录，读回来放在内存页链的右端，然后很快就因为aged out挤占出内存，以后需要到同一页面的其它行的内容时，又重新去读一次，产生的IO自然就高了，高几倍也很正常。</p>
<p>LRU和MRU的策略选择，对ASE 来说是自动的。简单来说，当优化器认为这个语句要读很多的数据，而执行完这个语句之后这些内容可能又很可能不会被其它语句用到；假如继续选用LRU策略的话很可能会让大多数热点数据被挤占出去导致整个系统的内存命中率下降，那么这个时候就会选用MRU策略。</p>
<p>场景2里面，优化器选用MRU本身不是问题，导致问题的是强制使用了一个不该使用的索引。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 从WordPress移植到WordPress MU by 忧伤的土拨鼠</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/11/24/%e4%bb%8ewordpress%e7%a7%bb%e6%a4%8d%e5%88%b0wordpress-mu/comment-page-1/#comment-78</link>
		<dc:creator>忧伤的土拨鼠</dc:creator>
		<pubDate>Wed, 25 Nov 2009 02:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseclub.org/flybean/?p=3#comment-78</guid>
		<description>俺也来弄弄。</description>
		<content:encoded><![CDATA[<p>俺也来弄弄。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Index scan for like %% (part one) by 醉里挑灯看剑 &#187; Blog Archive &#187; Index scan for like %% (part two)</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/08/29/index-scan-for-like/comment-page-1/#comment-77</link>
		<dc:creator>醉里挑灯看剑 &#187; Blog Archive &#187; Index scan for like %% (part two)</dc:creator>
		<pubDate>Sat, 29 Aug 2009 13:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=319#comment-77</guid>
		<description>[...] &#171; Index scan for like %% (part one) [...]</description>
		<content:encoded><![CDATA[<p>[...] &laquo; Index scan for like %% (part one) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 强制使用索引的模糊查询 by 醉里挑灯看剑 &#187; Blog Archive &#187; Index scan for like %%</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/04/16/%e5%bc%ba%e5%88%b6%e4%bd%bf%e7%94%a8%e7%b4%a2%e5%bc%95%e7%9a%84%e6%a8%a1%e7%b3%8a%e6%9f%a5%e8%af%a2/comment-page-1/#comment-72</link>
		<dc:creator>醉里挑灯看剑 &#187; Blog Archive &#187; Index scan for like %%</dc:creator>
		<pubDate>Sat, 29 Aug 2009 09:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=280#comment-72</guid>
		<description>[...] 　　然后，插入二十多条数据，再执行 select * from test where name like &#8216;%sfd%&#8217;，检查查询计划，index scan！有进步（参看：强制使用索引的模糊查询一文）　　为了确保测试的效果，过几天多搞点数据再测试。:)　　BTW，还是有一些失望（一如既往的失望:(）：在ASE 15仍在Beta中时，就传说自15开始，默认的锁类型为DOL，但实际上到15.0.3 ESD2为止，仍是APL。另，默认page size仍是2K。不知道 Sybase 何时能抛弃这些遗留下来的“夜壶”？ [...]</description>
		<content:encoded><![CDATA[<p>[...] 　　然后，插入二十多条数据，再执行 select * from test where name like &#8216;%sfd%&#8217;，检查查询计划，index scan！有进步（参看：强制使用索引的模糊查询一文）　　为了确保测试的效果，过几天多搞点数据再测试。:)　　BTW，还是有一些失望（一如既往的失望:(）：在ASE 15仍在Beta中时，就传说自15开始，默认的锁类型为DOL，但实际上到15.0.3 ESD2为止，仍是APL。另，默认page size仍是2K。不知道 Sybase 何时能抛弃这些遗留下来的“夜壶”？ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 强制使用索引的模糊查询 by 醉里挑灯看剑 &#187; Blog Archive &#187; Index scan for like %%</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/04/16/%e5%bc%ba%e5%88%b6%e4%bd%bf%e7%94%a8%e7%b4%a2%e5%bc%95%e7%9a%84%e6%a8%a1%e7%b3%8a%e6%9f%a5%e8%af%a2/comment-page-1/#comment-69</link>
		<dc:creator>醉里挑灯看剑 &#187; Blog Archive &#187; Index scan for like %%</dc:creator>
		<pubDate>Sat, 29 Aug 2009 09:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=280#comment-69</guid>
		<description>[...] 　　然后，插入二十多条数据，再执行 select * from test where name like &#8216;%sfd%&#8217;，检查查询计划，index scan！有进步（参看：强制使用索引的模糊查询一文）　　为了确保测试的效果，过几天多搞点数据再测试。:)　　BTW，还是有一些失望（一如既往的失望:(）：在ASE 15仍在Beta中时，就传说自15开始，默认的锁类型为DOL，但实际上到15.0.3 ESD2为止，仍是APL。另，默认page size仍是2K。不知道 Sybase 何时能抛弃这些遗留下来的“夜壶”？ [...]</description>
		<content:encoded><![CDATA[<p>[...] 　　然后，插入二十多条数据，再执行 select * from test where name like &#8216;%sfd%&#8217;，检查查询计划，index scan！有进步（参看：强制使用索引的模糊查询一文）　　为了确保测试的效果，过几天多搞点数据再测试。:)　　BTW，还是有一些失望（一如既往的失望:(）：在ASE 15仍在Beta中时，就传说自15开始，默认的锁类型为DOL，但实际上到15.0.3 ESD2为止，仍是APL。另，默认page size仍是2K。不知道 Sybase 何时能抛弃这些遗留下来的“夜壶”？ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JACOB 调用 Office COM 组件的注意事项 by lyfei</title>
		<link>http://sybaseclub.org/blogs/flybean/2007/12/20/jacob-%e8%b0%83%e7%94%a8-office-com-%e7%bb%84%e4%bb%b6%e7%9a%84%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9/comment-page-1/#comment-50</link>
		<dc:creator>lyfei</dc:creator>
		<pubDate>Mon, 06 Jul 2009 03:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=172#comment-50</guid>
		<description>请问这个”序列化访问同一类 Office COM 组件“是什么意思</description>
		<content:encoded><![CDATA[<p>请问这个”序列化访问同一类 Office COM 组件“是什么意思</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unix&#039;s 40 years by 忧伤的土拨鼠</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/06/09/unixs-40-years/comment-page-1/#comment-76</link>
		<dc:creator>忧伤的土拨鼠</dc:creator>
		<pubDate>Tue, 09 Jun 2009 08:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=306#comment-76</guid>
		<description>借我一个放大镜先.</description>
		<content:encoded><![CDATA[<p>借我一个放大镜先.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 白鱼石今安在？ by flybean</title>
		<link>http://sybaseclub.org/blogs/flybean/2009/04/17/%e7%99%bd%e9%b1%bc%e7%9f%b3%e4%bb%8a%e5%ae%89%e5%9c%a8%ef%bc%9f/comment-page-1/#comment-75</link>
		<dc:creator>flybean</dc:creator>
		<pubDate>Sun, 19 Apr 2009 01:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sybaseclub.org/blog/?p=297#comment-75</guid>
		<description>昨天上Google看了一下，龙头已经没有了。不知道那帮龟儿子还要做什么。狗日的区政府倒是建的豪华得紧。</description>
		<content:encoded><![CDATA[<p>昨天上Google看了一下，龙头已经没有了。不知道那帮龟儿子还要做什么。狗日的区政府倒是建的豪华得紧。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

