<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Entertainment for a Greater Tomorrow &#187; database</title>
	<atom:link href="http://4egtv.net/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://4egtv.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 20 Apr 2010 16:41:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unique ID&#8217;s</title>
		<link>http://4egtv.net/admin/unique-ids/</link>
		<comments>http://4egtv.net/admin/unique-ids/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 15:05:08 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Database Technique]]></category>
		<category><![CDATA[Development Help]]></category>
		<category><![CDATA[data structure]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[primary key]]></category>
		<category><![CDATA[unique id]]></category>
		<category><![CDATA[universal reference file]]></category>

		<guid isPermaLink="false">http://4egtv.net/?p=37</guid>
		<description><![CDATA[Applications that use this will use it to a much smaller amount of characters but the principle is sound, generating the next ID only requires the previous ID, and the number of possible Unique IDs are endless.]]></description>
			<content:encoded><![CDATA[<p>When EGT was developing its database structure it considered many models and was searching for a database model that could promote quick changes and easy development. This way if someone thought to reindex a table it would be an easy undertaking, as the same if someone thought a table name had to change to support a new standard.</p>
<p>EGT was also looking for a database structure that would support quick searches based on an ID or based on some quick information. What EGT came up with, is used in a similar context in many data applications. Its commonly known as a Unique ID, and EGT&#8217;s personal version is called an EGT Universal Reference File key (eURF).</p>
<p>The structure is simple, EGT records the creation of a new Unique ID in a Universal Reference Table with enough information to identify the table and supply a &#8220;common language description.&#8221; Something that developers could look at and understand what file created this URF key.</p>
<p>The requested Unique ID is then added to a table as the primary key, and that record receives its data information. For instance, if EGT was going to add a comment to a comment table. EGT would request a Unique ID and add it to the Universal Reference Table and to the comment table.</p>
<p>Thus if a user remembers the id of that comment, the user could perform an ID search and it could be found from the Universal Reference Table that the ID goes to the specific comment.</p>
<p><strong>Generating the EGT Unique ID:</strong></p>
<p>When EGT began implementing this Unique ID, it needed an ID guaranteed to be unique through the entire existence of an application. They only guaranteed way to perform a Unique ID is through a numeric odometer that has practically infinite possibilities.</p>
<p>It contains the first 4 characters of &#8220;EGT-&#8221; and then a series of 17 alhpa and numeric characters. Of each next request the odometer function call gathers the last generated eURF, converts the alpha-numeric characters to numbers, advances the number sequence 1, then converts the results back into an alpha numeric sequence.</p>
<p>Applications that use this will use it to a much smaller amount of characters but the principle is sound, generating the next ID only requires the previous ID, and the number of possible Unique IDs are endless.</p>
<p><strong>Implementation</strong>:</p>
<p>Implementation happens to be very simple, on creating a new record you can attach a database trigger that will perform the creation of the next Unique ID automatically or you can have a programmatic function that will  be called on each insert statement. EGT choose to create a function call that would return the next eURF in sequence.</p>
<p>EGT&#8217;s reasoning is, the applications used to create the eURF have more processing power than the database itself. EGT leaves the database for its data storage capabilities and puts the logic in the hands of a software function call.</p>
<p><strong>Can I use something similar?</strong></p>
<p>Yes, you can implement this global database structure model without any need for our permission. It&#8217;s not something we own, its a globally recognized method to keep track of your database and for simple data control.</p>
<p>You&#8217;ll always be guaranteed that your Unique ID will not conflict with another until the sequence resets itself. If that happens, simple change the preceding 4 characters to another sequence and you have just made a global application change from one function call. In fact in all EGT Applications and Web services its a matter of changing a simple settings file.</p>
<p><em>By the way, we can sell you the odometer code for a very small amount, to inquire simply post a comment, include your e-mail and we will send you a quote.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://4egtv.net/admin/unique-ids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
