Quote:
|
Timestamp might work providing that no one ever changed a record, otherwise the value will change and your realtional integrity will be wrecked if there are any child tables.
|
NOT TRUE. You can make a TIMESTAMP value to stay the same even with a update. Use
ts_col TIMESTAMP DEFAULT CURRENT_TIMESTAMP
The column will retain its value for subsequent updates.
Quote:
|
Equally you can't guaranteee the uniqueness of a timestamp value.
|
I would be interested to know why.
Quote:
|
It may make sense to prune your data in any event, depends on your business rules, but if someome hasn't traded with / used your services for more than say 12 months do you need to keep their data?
|
Good point you have there. Thanks. Yes normally you would keep those valuable info for statistical purposes.
Quote:
|
wouldn't it make more sense to change the datatype of the PK to bigint?
|
My point is, since both INT and TIMESTAMP datatypes have a size of 4 bytes. BIGINT is on another level already.