<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8118313070057098741.post6197127848200236606..comments</id><updated>2010-08-04T09:21:18.013+01:00</updated><category term='apache'/><category term='linux'/><category term='lvs'/><category term='clustering'/><category term='mysql'/><category term='sql'/><category term='php'/><category term='Javascript'/><category term='sockets'/><category term='uml'/><category term='lamp'/><category term='replication'/><category term='mongodb php'/><category term='ExtJS'/><title type='text'>Comments on Andrew Rose: MySQL: Unlimited updates in one query - ish.</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.andrewrose.co.uk/feeds/6197127848200236606/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8118313070057098741/6197127848200236606/comments/default'/><link rel='alternate' type='text/html' href='http://blog.andrewrose.co.uk/2007/12/mysql-unlimited-updates-in-only-two.html'/><author><name>Andrew Rose</name><uri>http://www.blogger.com/profile/05883626584607606086</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8118313070057098741.post-8006610858590973929</id><published>2010-08-04T09:21:18.013+01:00</published><updated>2010-08-04T09:21:18.013+01:00</updated><title type='text'>Hi George.  Yeap, row by row is the way we have to...</title><content type='html'>Hi George.  Yeap, row by row is the way we have to do things.  We deal with data from many heterogeneous systems that don&amp;#39;t export data in the exact same ways.  This data requires sanitizing and lookups into internal hash tables for their respective keys.  Also some rows require actions to be performed i.e. new student or staff records may require new user accounts creating.  We also need to derive certain data due to limitations of the external systems.&lt;br /&gt;&lt;br /&gt;Using the MySQL &amp;quot;LOAD DATA INFILE&amp;quot; functionality was one of my first attempts(many years ago), which doesn&amp;#39;t require any temp tables. We grew out of this method very quickly.  If the data you take in is known to be clean and matches with your own systems schema then by all means use something like this.  We don&amp;#39;t have that luxury :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8118313070057098741/6197127848200236606/comments/default/8006610858590973929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8118313070057098741/6197127848200236606/comments/default/8006610858590973929'/><link rel='alternate' type='text/html' href='http://blog.andrewrose.co.uk/2007/12/mysql-unlimited-updates-in-only-two.html?showComment=1280910078013#c8006610858590973929' title=''/><author><name>Andrew Rose</name><uri>http://www.blogger.com/profile/05883626584607606086</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.andrewrose.co.uk/2007/12/mysql-unlimited-updates-in-only-two.html' ref='tag:blogger.com,1999:blog-8118313070057098741.post-6197127848200236606' source='http://www.blogger.com/feeds/8118313070057098741/posts/default/6197127848200236606' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1015212561'/></entry><entry><id>tag:blogger.com,1999:blog-8118313070057098741.post-3854803999822784087</id><published>2010-08-03T22:48:53.625+01:00</published><updated>2010-08-03T22:48:53.625+01:00</updated><title type='text'>I know this is an old post, but I thought it was w...</title><content type='html'>I know this is an old post, but I thought it was worth a quick comment anyhow :)&lt;br /&gt;&lt;br /&gt;Why are you performing individual inserts and updates? Would it not be more efficient to bulk load the CSV(s) in to a temporary table and then use a SET based method instead of an RBAR one?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8118313070057098741/6197127848200236606/comments/default/3854803999822784087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8118313070057098741/6197127848200236606/comments/default/3854803999822784087'/><link rel='alternate' type='text/html' href='http://blog.andrewrose.co.uk/2007/12/mysql-unlimited-updates-in-only-two.html?showComment=1280872133625#c3854803999822784087' title=''/><author><name>George</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.andrewrose.co.uk/2007/12/mysql-unlimited-updates-in-only-two.html' ref='tag:blogger.com,1999:blog-8118313070057098741.post-6197127848200236606' source='http://www.blogger.com/feeds/8118313070057098741/posts/default/6197127848200236606' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-364513774'/></entry></feed>
