<?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 on: Profiling MySQL stored routines</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/01/19/profiling-mysql-stored-routines/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/01/19/profiling-mysql-stored-routines/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/19/profiling-mysql-stored-routines/comment-page-1/#comment-600605</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 30 Jun 2009 02:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=589#comment-600605</guid>
		<description>@Pat

I know it&#039;s probably a bit late for comments, but I have something to add based on my experience.

In a network where the web and database servers are separate and traffic volume is high (which is the case in most large organizations), it makes sense to localize any and all intermediate queries on the same database server. We have this problem where 500 queries every second slows the web server down by a very high margin (5-10 seconds a request). So, if you can make few queries from the web servers and have all the local (optimized) processing on the database server, network traffic is reduced to minimum possible.</description>
		<content:encoded><![CDATA[<p>@Pat</p>
<p>I know it&#8217;s probably a bit late for comments, but I have something to add based on my experience.</p>
<p>In a network where the web and database servers are separate and traffic volume is high (which is the case in most large organizations), it makes sense to localize any and all intermediate queries on the same database server. We have this problem where 500 queries every second slows the web server down by a very high margin (5-10 seconds a request). So, if you can make few queries from the web servers and have all the local (optimized) processing on the database server, network traffic is reduced to minimum possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zam</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/19/profiling-mysql-stored-routines/comment-page-1/#comment-456303</link>
		<dc:creator>Zam</dc:creator>
		<pubDate>Mon, 26 Jan 2009 23:05:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=589#comment-456303</guid>
		<description>Answer to Pat:

Well first like you say, you have security, for example, we have an log/register. We have one stored procedure/function wich allow adding data to the table. The function is runned under an own user account, wich is the only account who has writing priviliges to this table, making it impossible to anyone to delete any data from our log.

secondly, i prefer to have all my querys in the databas, the application using the databas should&#039;n be able to determine wih data he will recive. if a query need to changes, you change the query on one place only.</description>
		<content:encoded><![CDATA[<p>Answer to Pat:</p>
<p>Well first like you say, you have security, for example, we have an log/register. We have one stored procedure/function wich allow adding data to the table. The function is runned under an own user account, wich is the only account who has writing priviliges to this table, making it impossible to anyone to delete any data from our log.</p>
<p>secondly, i prefer to have all my querys in the databas, the application using the databas should&#8217;n be able to determine wih data he will recive. if a query need to changes, you change the query on one place only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pat</title>
		<link>http://www.mysqlperformanceblog.com/2009/01/19/profiling-mysql-stored-routines/comment-page-1/#comment-452938</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Fri, 23 Jan 2009 17:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=589#comment-452938</guid>
		<description>Is there a practical benefit to using stored procedures in a production app these days? I can see the potential for greater security (since things like injection attacks get harder), but that can be solved with careful coding practises as well e.g. if I escape my SQL properly or use prepared statements I&#039;m largely immune to SQL injection attacks.

Which leaves the theoretical benefit of greater efficiency since a stored procedure can access data with a latency of zero and grind over it faster than a client app which is running at the far end of a network link, but are folks really seeing a benefit here?

In other words are a lot of folks actually building on top of stored procedures these days? Is it working out?</description>
		<content:encoded><![CDATA[<p>Is there a practical benefit to using stored procedures in a production app these days? I can see the potential for greater security (since things like injection attacks get harder), but that can be solved with careful coding practises as well e.g. if I escape my SQL properly or use prepared statements I&#8217;m largely immune to SQL injection attacks.</p>
<p>Which leaves the theoretical benefit of greater efficiency since a stored procedure can access data with a latency of zero and grind over it faster than a client app which is running at the far end of a network link, but are folks really seeing a benefit here?</p>
<p>In other words are a lot of folks actually building on top of stored procedures these days? Is it working out?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
