<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: Unique id's --> <!--X-From-R13: pbqreNvoz.arg --> <!--X-Date: from tacitus.globecomm.net [207.51.48.7] by mx01.ca.us.ibm.net id 860950908.119903-1 Sun Apr 13 17:01:48 1997 --> <!--X-Message-Id: 199704131701.RAA55641#out1,ibm.net --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199704121704.RAA386935#out1,ibm.net --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: Unique id's</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:coder#ibm,net"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00116.html">Previous</a> | <a href="msg00122.html">Next</a> ] Thread: [ <a href="msg00106.html">Previous</a> | <a href="msg00122.html">Next</a> ] Index: [ <A HREF="author.html#00119">Author</A> | <A HREF="#00119">Date</A> | <A HREF="thread.html#00119">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: Unique id's</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: "Multiple Recipients of MUD Design Mailing List" <<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>></LI> <LI><em>Subject</em>: Re: Unique id's</LI> <LI><em>From</em>: <A HREF="mailto:coder#ibm,net">coder#ibm,net</A></LI> <LI><em>Date</em>: Sun, 13 Apr 97 09:16:01 -0700</LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> On 12/04/97 at 12:55 PM, "Jon A. Lambert" <jlsysinc#ix,netcom.com> said: >> From: coder#ibm,net >> On 12/04/97 at 12:51 AM, "Jon A. Lambert" <jlsysinc#ix,netcom.com> said: >> There's no problem if two ObjectID's contain the same timestamp. It >> doesn't matter at all. What has to be unique is the combination of >> record# and timestamp -- and that combo must be unique for the entire life >> of the database. Happily this is not a problem until April 2038, longer >> if you chose a different timestamp format. >> >Ahh your ID has two parts. I use something called a CriticalSection >object to block the ' id++; ' function. Its very similar to a mutex, >except the reset occurs automatically upon leaving the code section. >Its supposed be slightly more efficient, but I believe its really a mutex >under the covers. I use it alot, all over the place. :-) Check into the base code for your CriticalSection. I've seen far to many such blobs whose definition of a critical section is that it is the ONLY thread in the application allowed to execute for the duration. <shudder> (This how OS/2 and Windows handle their "critical section" API's, and I've seen something similar in a library that shall remain nameless for SunOS). >> I'm rather pleased actually -- the last time I had the server in a shape >> it would actually run, I had it creating and destroying about 100,000 >> objects per hour while mobiles wandered about the game going in and out of >> spoof/watcher areas, and breeding like crazy. >> >> Figure, that's what, about 40+ million objects being created and >> destroyed... Certainly not enough to cause a 32bit wrap, but a good >> enough test to demonstrate that the idea works. >Whoa Nelly! I don't expect to reach anything approaching this rate of >creation and destruction. Neither do I for actual production databases. It was a contrived stress test of the area. I tend to do a lot of those sorts of things. Okay, we'll create two rooms linked by a single door. Now lets create a simple mobile that just bounces back and forth between those rooms thru that door. Now lets clone that puppy a few thousand times. Turn on the box and see what happens! >Have you checked your machine for viruses lately? ;-) Heck. I am the virus. -- J C Lawrence Internet: claw#null,net ----------(*) Internet: coder#ibm,net ...Honourary Member of Clan McFud -- Teamer's Avenging Monolith... </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00116.html">Re: short absence</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00122.html">Re: Unique id's</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00106.html">Re: Unique id's</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00122.html">Re: Unique id's</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00119"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00119"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>Re: Unique id's</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00094" HREF="msg00094.html">Re: Unique id's</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Sat 12 Apr 1997, 06:03 GMT </LI> <LI><strong><A NAME="00101" HREF="msg00101.html">Re: Unique id's</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 12 Apr 1997, 11:49 GMT </LI> <LI><strong><A NAME="00103" HREF="msg00103.html">Re: Unique id's</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sat 12 Apr 1997, 13:55 GMT </LI> <LI><strong><A NAME="00106" HREF="msg00106.html">Re: Unique id's</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 12 Apr 1997, 23:53 GMT </LI> <LI><strong><A NAME="00119" HREF="msg00119.html">Re: Unique id's</A></strong>, coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Mon 14 Apr 1997, 00:01 GMT </LI> <LI><strong><A NAME="00122" HREF="msg00122.html">Re: Unique id's</A></strong>, Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Mon 14 Apr 1997, 02:40 GMT </LI> <LI><strong><A NAME="00123" HREF="msg00123.html">Re: Unique id's</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 14 Apr 1997, 04:31 GMT </LI> <LI><strong><A NAME="00131" HREF="msg00131.html">Re: Unique id's</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Mon 14 Apr 1997, 23:24 GMT </LI> </ul> </LI> <LI><strong><A NAME="00057" HREF="msg00057.html">self-intro: Cynbe</A></strong>, Cynbe ru Taren <a href="mailto:cynbe#laurel,actlab.utexas.edu">cynbe#laurel,actlab.utexas.edu</a>, Wed 09 Apr 1997, 10:54 GMT </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>