{"id":44643,"date":"2015-02-18T07:00:00","date_gmt":"2015-02-18T22:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2015\/02\/18\/when-asking-about-the-capacity-of-a-program-you-also-need-to-consider-what-happens-when-you-decide-to-stop-using-the-program\/"},"modified":"2019-03-13T12:13:06","modified_gmt":"2019-03-13T19:13:06","slug":"20150218-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20150218-00\/?p=44643","title":{"rendered":"When asking about the capacity of a program, you also need to consider what happens when you decide to stop using the program"},"content":{"rendered":"<p>An internal customer had a question about a tool, let&#8217;s call it <i>Program&nbsp;Q<\/i>. <\/p>\n<blockquote CLASS=\"q\"><p>As part of our gated checkin system, the system creates a new record in a Program&nbsp;Q table to record details of the checkin. (What tests were run, who did the code review, that sort of thing.) We are considering incorporating the Program&nbsp;Q record number as part of our version number: major.minor.service&shy;pack.hot&shy;fix.record&shy;number. What is the maximum number of records per table supported by Program&nbsp;Q? <\/p><\/blockquote>\n<p>Now, the easy way out is to just answer the question: The theoretical maximum number of records per table is 2&sup3;&sup2;&minus;1. Even if your gated checkin system&#8217;s throughput is one checkin per second, that gives you over a century of record numbers. <\/p>\n<p>But answering the question misses the big picture: The limiting factor is not the capacity of Program&nbsp;Q. The limiting factor is how long you plan to keep using Program&nbsp;Q! Before the century is up, you probably won&#8217;t be using Program&nbsp;Q. What is your transition plan? <\/p>\n<p>In this case, it&#8217;s probably not that complicated. Suppose that at the time Program&nbsp;Q is retired and replaced with Program&nbsp;R, the highest record number is 314159. You could just say that the version number in the binary is the Program&nbsp;R record number plus 400000. <\/p>\n<p>If you&#8217;re clever, you can time the switch from Program&nbsp;Q to Program&nbsp;R to coincide with a change to the major.minor.service&shy;pack.hot&shy;fix, at which point you can reset the record&shy;number to 1. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;ll fit as long as you need it.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-44643","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>It&#8217;ll fit as long as you need it.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/44643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=44643"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/44643\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=44643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=44643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=44643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}