<?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: Goodbye, auto increment</title> <atom:link href="http://www.mitchitized.com/nerdy-stuff/goodbye-auto-increment/feed/" rel="self" type="application/rss+xml" /><link>http://www.mitchitized.com/nerdy-stuff/goodbye-auto-increment/</link> <description>the online home for mitch pirtle</description> <lastBuildDate>Fri, 30 Jul 2010 12:03:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: Justin Dearing</title><link>http://www.mitchitized.com/nerdy-stuff/goodbye-auto-increment/#comment-764</link> <dc:creator>Justin Dearing</dc:creator> <pubDate>Fri, 30 Jul 2010 12:03:04 +0000</pubDate> <guid
isPermaLink="false">http://www.mitchitized.com/?p=44#comment-764</guid> <description>[quote]
Put more bluntly, right now the only databases that use auto increment are MySQL and Microsoft Access. Yes, there is a reason, and it ain’t a good one.
[/quote]SQL Server has IDENTIY(), Postgres has sequences. 99% of the time these operate the same as autoincrement, with all the same problems. I doubt Oracle, Sybase and DB2 lack this feature by another other name. While popularity does not make this feature right.[quote]
In the good ol’ days when I had to walk to school 20 miles each way in the ice and snow, naked, disk space was expensive and RAM was even worse. Then this kind of approach would have been appreciated as a cost cutting move. Nowadays? Fuhgeddaboudit.
[/quote]DBs are one of the areas where this does not really apply. No matter how many gigs of music/video/word document I have I&#039;m only using one at a time so there is a &quot;fast enoiugh.&quot; When I have a blog, an accounting system, or something else, I want a billion people to be able to access said blog. I want to be able to store a millions of articles and billions of comments in one database. I also want to serve them to hundres of people a second. From that point of view, keysize matters. Of course, if you want to be able to shard and have an artificial key, even a a 96bit OID or a 128 bit UUID is smaller than most email addresses.</description> <content:encoded><![CDATA[<p>[quote]<br
/> Put more bluntly, right now the only databases that use auto increment are MySQL and Microsoft Access. Yes, there is a reason, and it ain’t a good one.<br
/> [/quote]</p><p>SQL Server has IDENTIY(), Postgres has sequences. 99% of the time these operate the same as autoincrement, with all the same problems. I doubt Oracle, Sybase and DB2 lack this feature by another other name. While popularity does not make this feature right.</p><p>[quote]<br
/> In the good ol’ days when I had to walk to school 20 miles each way in the ice and snow, naked, disk space was expensive and RAM was even worse. Then this kind of approach would have been appreciated as a cost cutting move. Nowadays? Fuhgeddaboudit.<br
/> [/quote]</p><p>DBs are one of the areas where this does not really apply. No matter how many gigs of music/video/word document I have I&#8217;m only using one at a time so there is a &#8220;fast enoiugh.&#8221; When I have a blog, an accounting system, or something else, I want a billion people to be able to access said blog. I want to be able to store a millions of articles and billions of comments in one database. I also want to serve them to hundres of people a second. From that point of view, keysize matters. Of course, if you want to be able to shard and have an artificial key, even a a 96bit OID or a 128 bit UUID is smaller than most email addresses.</p> ]]></content:encoded> </item> <item><title>By: Gary</title><link>http://www.mitchitized.com/nerdy-stuff/goodbye-auto-increment/#comment-471</link> <dc:creator>Gary</dc:creator> <pubDate>Sat, 05 Dec 2009 13:12:44 +0000</pubDate> <guid
isPermaLink="false">http://www.mitchitized.com/?p=44#comment-471</guid> <description>As you pointed out, disk space is cheap, even if you have no use for the auto increment field for a table today, it costs nothing to include it.  Course it also costs nothing to put on a couple of timestamp fields for created and updated.</description> <content:encoded><![CDATA[<p>As you pointed out, disk space is cheap, even if you have no use for the auto increment field for a table today, it costs nothing to include it.  Course it also costs nothing to put on a couple of timestamp fields for created and updated.</p> ]]></content:encoded> </item> <item><title>By: mitchy</title><link>http://www.mitchitized.com/nerdy-stuff/goodbye-auto-increment/#comment-29</link> <dc:creator>mitchy</dc:creator> <pubDate>Fri, 14 Aug 2009 04:17:01 +0000</pubDate> <guid
isPermaLink="false">http://www.mitchitized.com/?p=44#comment-29</guid> <description>It requires balance. My biggest beef with auto increment is that too many folks just think that is required for every table.In short, they don&#039;t seem to be modeling data anymore. If you don&#039;t want to bother yourself with the structure of your data, you should go schema-free, man! :-)</description> <content:encoded><![CDATA[<p>It requires balance. My biggest beef with auto increment is that too many folks just think that is required for every table.</p><p>In short, they don&#8217;t seem to be modeling data anymore. If you don&#8217;t want to bother yourself with the structure of your data, you should go schema-free, man! <img
src='http://www.mitchitized.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Andy Tarr</title><link>http://www.mitchitized.com/nerdy-stuff/goodbye-auto-increment/#comment-28</link> <dc:creator>Andy Tarr</dc:creator> <pubDate>Thu, 13 Aug 2009 23:13:29 +0000</pubDate> <guid
isPermaLink="false">http://www.mitchitized.com/?p=44#comment-28</guid> <description>The problem with using something with meaning is that you better be sure it won&#039;t need to be changed and there are surprisingly few things that is true of. Changing a primary key, especially on a non-relational database, can be a real pain.I really like to be able to change user names, for instance. I had one user who got married and divorced 3 times in 7 years - and changed her name every time. Product ids, catalog numbers and even UPC numbers need to be able to change without creating a new record. Such a lovely feeling when you had to change a key piece of information like that and to find it wasn&#039;t used as a key.Still, you are right not to use auto inc indiscriminately.</description> <content:encoded><![CDATA[<p>The problem with using something with meaning is that you better be sure it won&#8217;t need to be changed and there are surprisingly few things that is true of. Changing a primary key, especially on a non-relational database, can be a real pain.</p><p>I really like to be able to change user names, for instance. I had one user who got married and divorced 3 times in 7 years &#8211; and changed her name every time. Product ids, catalog numbers and even UPC numbers need to be able to change without creating a new record. Such a lovely feeling when you had to change a key piece of information like that and to find it wasn&#8217;t used as a key.</p><p>Still, you are right not to use auto inc indiscriminately.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using xcache
Page Caching using xcache (user agent is rejected)
Database Caching using xcache

Served from: www.mitchitized.com @ 2010-08-01 10:39:14 -->