× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Timestamps
  • From: "David Morris" <dmorris@xxxxxxxxxxxxx>
  • Date: Wed, 22 Nov 2000 09:20:31 -0700

Eric,

I agree completely that timestamps are unlikely to work for anything other 
than an audit trail.  In the case described, where the timestamp is retrieved 
in a trigger, I would even question that you could guarantee the order.  How 
do you omit a field and have it set on an update?  I have found that only 
works on a write.  

An 8 byte unsigned update sequence is likely to be adequate because you can 
start at 1 and don't have to skip like a timestamp.  A UUID addresses another 
issue that I don't think exists in the case described. 

David Morris

>>> doulos1@home.com 11/22/00 08:32AM >>>
Hello,

Using the API is a bit of overkill in most situations. Doing the Time
opcode into a timestamp field gives you everything but the last 3
digits of the timestamp... Which I believe to be the same result as
the API.

Using a logical file with the time stamp omitted is the only way I
know of to actually get the last three digits of the timestamp...

Even if a person were able to get the last three digits of a timestamp
there will come a day when more than one record will be able to be
added in that interval (Trust me it will especially if you rely on a
timestamp to be your unique key). There has been discussion on the
validity of using timestamps and methods of retrieving them recently
and should be accessible via the search facilities.

A approach that may be more viable is to use a UUID as has also been
discussed recently. The value is not pretty to the eyes, but unique
keys should not have any embedded meaning (other than to uniquely
identify a record) in my opinion.

Wednesday, November 22, 2000, 12:43:38 AM, you wrote:

----------------------------------
Eric N. Wilson
President
Doulos Software and Computer Services


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.