<?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-3426163161769571834.post1762722884200246518..comments</id><updated>2011-03-08T16:56:06.657-08:00</updated><category term='essay'/><category term='Kindle'/><category term='android'/><category term='events'/><category term='reviews'/><category term='announce'/><category term='hacks'/><category term='computers'/><category term='tribute'/><title type='text'>Comments on Shreeni's Tech Log: Conditional MySQL statements: Lifesaver on occasio...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tech.shreeni.info/feeds/1762722884200246518/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default'/><link rel='alternate' type='text/html' href='http://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html'/><author><name>Shreeni</name><uri>http://www.blogger.com/profile/08742144807675237049</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='32' height='24' src='http://4.bp.blogspot.com/_h39AXFKIuws/ShzhCe8MXNI/AAAAAAAAC2Y/Kr9nSDacvR8/S220/newprofileimage.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3426163161769571834.post-435008528233568444</id><published>2011-03-08T16:56:06.657-08:00</published><updated>2011-03-08T16:56:06.657-08:00</updated><title type='text'>@Shreeni - So you take advantage of the fact that ...</title><content type='html'>@Shreeni - So you take advantage of the fact that you are most surely to get hits on the page? Or do you&amp;#39;ve a combination of the cron as well as the conditional updates on the DB?&lt;br /&gt;&lt;br /&gt;Anyways, my point was that if the traffic isn&amp;#39;t high and the counter solely relies on the conditional update, we might have incorrect results.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/435008528233568444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/435008528233568444'/><link rel='alternate' type='text/html' href='http://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html?showComment=1299632166657#c435008528233568444' title=''/><author><name>Gokul A</name><uri>http://www.blogger.com/profile/14072577166048486830</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://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html' ref='tag:blogger.com,1999:blog-3426163161769571834.post-1762722884200246518' source='http://www.blogger.com/feeds/3426163161769571834/posts/default/1762722884200246518' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-13352466'/></entry><entry><id>tag:blogger.com,1999:blog-3426163161769571834.post-3688529579275494913</id><published>2011-03-07T23:52:48.765-08:00</published><updated>2011-03-07T23:52:48.765-08:00</updated><title type='text'>@Gokul A: Haven&amp;#39;t I written about the cron job...</title><content type='html'>@Gokul A: Haven&amp;#39;t I written about the cron job you would have to run each night? Wouldn&amp;#39;t that update both the cases you are mentioning? This solution is deployed on a very high traffic site with millions of users and it works, so if the conditions you mention are definitely handled - it is a different matter that I might be missing a step in this blog entry (though I don&amp;#39;t see what it is when I am reading it presently.)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/3688529579275494913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/3688529579275494913'/><link rel='alternate' type='text/html' href='http://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html?showComment=1299570768765#c3688529579275494913' title=''/><author><name>Shreeni</name><uri>http://www.blogger.com/profile/08742144807675237049</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='32' height='24' src='http://4.bp.blogspot.com/_h39AXFKIuws/ShzhCe8MXNI/AAAAAAAAC2Y/Kr9nSDacvR8/S220/newprofileimage.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html' ref='tag:blogger.com,1999:blog-3426163161769571834.post-1762722884200246518' source='http://www.blogger.com/feeds/3426163161769571834/posts/default/1762722884200246518' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-518074105'/></entry><entry><id>tag:blogger.com,1999:blog-3426163161769571834.post-2116892798005025800</id><published>2011-03-07T21:45:12.387-08:00</published><updated>2011-03-07T21:45:12.387-08:00</updated><title type='text'>The solution doesn&amp;#39;t handle the count cleanly ...</title><content type='html'>The solution doesn&amp;#39;t handle the count cleanly from midnight - till the first page view occurs. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Case 1 - What happens when a particular page doesn&amp;#39;t receive a hit till late evening. You&amp;#39;ll be showing wrong values. &lt;br /&gt;Case 2 - A page doesn&amp;#39;t receive clicks for an entire day. The calculations will be plain wrong.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/2116892798005025800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/2116892798005025800'/><link rel='alternate' type='text/html' href='http://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html?showComment=1299563112387#c2116892798005025800' title=''/><author><name>Gokul A</name><uri>http://www.blogger.com/profile/14072577166048486830</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://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html' ref='tag:blogger.com,1999:blog-3426163161769571834.post-1762722884200246518' source='http://www.blogger.com/feeds/3426163161769571834/posts/default/1762722884200246518' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-13352466'/></entry><entry><id>tag:blogger.com,1999:blog-3426163161769571834.post-7800840988365347508</id><published>2010-01-18T05:45:54.693-08:00</published><updated>2010-01-18T05:45:54.693-08:00</updated><title type='text'>You can do the same by &amp;quot;Insert ... on duplica...</title><content type='html'>You can do the same by &amp;quot;Insert ... on duplicate update&amp;quot; construct in mysql (http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html)&lt;br /&gt;&lt;br /&gt;-Shanky</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/7800840988365347508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3426163161769571834/1762722884200246518/comments/default/7800840988365347508'/><link rel='alternate' type='text/html' href='http://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html?showComment=1263822354693#c7800840988365347508' title=''/><author><name>oosiris</name><uri>http://www.blogger.com/profile/12409062328778378502</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://tech.shreeni.info/2010/01/conditional-mysql-statements-lifesaver.html' ref='tag:blogger.com,1999:blog-3426163161769571834.post-1762722884200246518' source='http://www.blogger.com/feeds/3426163161769571834/posts/default/1762722884200246518' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1696024786'/></entry></feed>
