Subject | Re: [firebird-support] Auto Increment |
---|---|
Author | Helen Borrie |
Post date | 2004-05-24T08:38:52Z |
At 03:20 PM 24/05/2004 +0700, you wrote:
series will overflow. The number for BigInt is ***huge***, nay,
astronomical. Other things will "blow" before you use up a BigInt
generator. At the very least, systems and software will support 128-bit
integers long before your great-grandchildren use up a BigInt one.
ephemeral nature of BIOS timestamping, the system time is read to the
nearest second and most operations are subsecond in duration. Also, all
operations within a single insert statement loop will get the same timestamp.
Apart from that, timestamps and also floating point numbers are, by nature,
unreliable as search keys so you will get unpredictable results on joins.
/heLen
>If i use a primary key with autoincrement (integer), and it reaches theUse separate generators for separate tables if there is a chance your
>upper limit of the data types, what should i do ?
series will overflow. The number for BigInt is ***huge***, nay,
astronomical. Other things will "blow" before you use up a BigInt
generator. At the very least, systems and software will support 128-bit
integers long before your great-grandchildren use up a BigInt one.
>Actually i need to design a database that will contain date/time andDon't use timestamps as primary keys, period. Apart from the unavoidably
>transaction data. If i date and time as PK, i'm afraid if the BIOS date
>got error, it will make some duplication data and error will appears.
ephemeral nature of BIOS timestamping, the system time is read to the
nearest second and most operations are subsecond in duration. Also, all
operations within a single insert statement loop will get the same timestamp.
Apart from that, timestamps and also floating point numbers are, by nature,
unreliable as search keys so you will get unpredictable results on joins.
/heLen