<?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>Web notes &#187; mssql</title>
	<atom:link href="http://www.webnotes.com.ua/index.php/archives/tag/mssql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webnotes.com.ua</link>
	<description>nice web notes - полезные веб заметки</description>
	<lastBuildDate>Wed, 01 Feb 2012 19:27:29 +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>SQL. Оптимизация удаления из таблиц</title>
		<link>http://www.webnotes.com.ua/index.php/archives/602</link>
		<comments>http://www.webnotes.com.ua/index.php/archives/602#comments</comments>
		<pubDate>Wed, 26 Aug 2009 20:19:38 +0000</pubDate>
		<dc:creator>nice</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Заметки]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[оптимизация]]></category>

		<guid isPermaLink="false">http://www.webnotes.com.ua/?p=602</guid>
		<description><![CDATA[Для больших проектов и соответственно больших таблиц баз данных, нужно быть внимательным при построении логики запросов. Рассмотрим ускорение Delete из таблиц sql. 1. Вместо построчного удаления делайте массовое(сразу все строки, которые нужно удалить), т.к. при массовом удалении индекс претерпит изменения лишь раз, вместо постоянного передёргивания при построчном удалении. Например, вместо: delete from tablename where field1=2 [...]]]></description>
			<content:encoded><![CDATA[<p>Для больших проектов и соответственно больших таблиц баз данных, нужно быть внимательным при построении логики запросов. Рассмотрим ускорение <strong><span style="color: #808080;">Delete </span></strong>из таблиц <a href="http://www.webnotes.com.ua/?cat=40" target="_blank">sql</a>.</p>
<p><span id="more-602"></span></p>
<p><span style="color: #993300;"><strong>1. </strong></span>Вместо построчного удаления делайте массовое(сразу все строки, которые нужно удалить), т.к. при массовом удалении индекс претерпит изменения лишь раз, вместо постоянного передёргивания при построчном удалении.</p>
<p>Например, вместо:</p>
<pre class="brush: js">delete from tablename where field1=2
delete from tablename where field1=3
delete from tablename where field1=4</pre>
<p>лучше записать так:</p>
<pre class="brush: js">delete from tablename where field1=2 or field1=3 or field1=4</pre>
<p><strong><span style="color: #993300;">2. </span></strong>Если при удалении вы уверены, что никто не будет делать запрос к таблице, то делайте «LOCK TABLE».</p>
<p><strong><span style="color: #993300;">3. </span></strong>Если есть возможность перефразировать запрос на удаление указывая в разделе WHERE условие по полю первичного ключа, то целесообразно будет сделать именно так. Этот запрос будет не только быстрее, но и не будет блокировать таблицу.</p>
<p>Источник: <a href="http://www.t-sql.com.ua/index.php/archives/164" target="_blank">T-SQL Development Blog</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<noindex><div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webnotes.com.ua/index.php/archives/602&amp;title=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86+-+<br />
<b>Notice</b>:  Undefined index:  alias in <b>/home/shared_useracct/e7t.us/create.php</b> on line <b>9</b><br />
http://e7t.us/jtvx+(via+@niceteg)" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.webnotes.com.ua/index.php/archives/602&amp;title=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webnotes.com.ua/index.php/archives/602&amp;t=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.webnotes.com.ua/index.php/archives/602&amp;t=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://www.webnotes.com.ua/index.php/archives/602&amp;title=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="sexy-yandex">
			<a href="http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&amp;lurl=http://www.webnotes.com.ua/index.php/archives/602&amp;lname=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Add this to Yandex.Bookmarks">Add this to Yandex.Bookmarks</a>
		</li>
		<li class="sexy-memoryru">
			<a href="http://memori.ru/link/?sm=1&amp;u_data[url]=http://www.webnotes.com.ua/index.php/archives/602&amp;u_data[name]=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Add this to Memory.ru">Add this to Memory.ru</a>
		</li>
		<li class="sexy-100zakladok">
			<a href="http://www.100zakladok.ru/save/?bmurl=http://www.webnotes.com.ua/index.php/archives/602&amp;bmtitle=SQL.+%D0%9E%D0%BF%D1%82%D0%B8%D0%BC%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F+%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F+%D0%B8%D0%B7+%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86" rel="nofollow" title="Add this to 100 bookmarks">Add this to 100 bookmarks</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webnotes.com.ua/index.php/archives/602/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div></noindex>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webnotes.com.ua/index.php/archives/602/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL на PHP</title>
		<link>http://www.webnotes.com.ua/index.php/archives/66</link>
		<comments>http://www.webnotes.com.ua/index.php/archives/66#comments</comments>
		<pubDate>Wed, 01 Apr 2009 21:38:09 +0000</pubDate>
		<dc:creator>nice</dc:creator>
				<category><![CDATA[Заметки]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.webnotes.com.ua/?p=66</guid>
		<description><![CDATA[Написал еще одну статейку... надеюсь комуто она поможет в подключении MySQL или MSSQL к PHP. Add this to Google Bookmarks Tweet This! Share this on del.icio.us Share this on Facebook Post this to MySpace Share this on BobrDobr Add this to Yandex.Bookmarks Add this to Memory.ru Add this to 100 bookmarks Subscribe to the comments [...]]]></description>
			<content:encoded><![CDATA[<p>Написал еще одну <a href="http://www.webnotes.com.ua/?page_id=35" target="_self">статейку</a>... надеюсь комуто она поможет в подключении MySQL или MSSQL к PHP.</p>


<!-- Begin SexyBookmarks Menu Code -->
<noindex><div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.webnotes.com.ua/index.php/archives/66&amp;title=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=SQL+%D0%BD%D0%B0+PHP+-+<br />
<b>Notice</b>:  Undefined index:  alias in <b>/home/shared_useracct/e7t.us/create.php</b> on line <b>9</b><br />
http://e7t.us/jtwj+(via+@niceteg)" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.webnotes.com.ua/index.php/archives/66&amp;title=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.webnotes.com.ua/index.php/archives/66&amp;t=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.webnotes.com.ua/index.php/archives/66&amp;t=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-bobrdobr">
			<a href="http://bobrdobr.ru/addext.html?url=http://www.webnotes.com.ua/index.php/archives/66&amp;title=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Share this on BobrDobr">Share this on BobrDobr</a>
		</li>
		<li class="sexy-yandex">
			<a href="http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&amp;lurl=http://www.webnotes.com.ua/index.php/archives/66&amp;lname=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Add this to Yandex.Bookmarks">Add this to Yandex.Bookmarks</a>
		</li>
		<li class="sexy-memoryru">
			<a href="http://memori.ru/link/?sm=1&amp;u_data[url]=http://www.webnotes.com.ua/index.php/archives/66&amp;u_data[name]=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Add this to Memory.ru">Add this to Memory.ru</a>
		</li>
		<li class="sexy-100zakladok">
			<a href="http://www.100zakladok.ru/save/?bmurl=http://www.webnotes.com.ua/index.php/archives/66&amp;bmtitle=SQL+%D0%BD%D0%B0+PHP" rel="nofollow" title="Add this to 100 bookmarks">Add this to 100 bookmarks</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.webnotes.com.ua/index.php/archives/66/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div></noindex>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.webnotes.com.ua/index.php/archives/66/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
