Hi Everyone...
I've taken over a db schema which is to be used across multiple seperate locations, each with it's own set of isolated tills/operators/transactions...
The problem is, because of the isolated nature of the database, the transaction tables use a composite primary key consisting of StoreID, TillID, OperatorID, TransactionID along with it's own id number to maintain uniqueness on the "central" database used to house information across all locations.
As you are all aware, composite primary keys are not ideal, especially considering this is a heavily transactional system, and I would like to offer an viable solution, however the only option I can think of at the moment involves merging these ids into a SuperID against all tables, which doesn't seem to be much of an improvement.
Can anyone here think of a good viable solution to this problem?
Thanks
--------------------
Procrastinate Now!
I've taken over a db schema which is to be used across multiple seperate locations, each with it's own set of isolated tills/operators/transactions...
The problem is, because of the isolated nature of the database, the transaction tables use a composite primary key consisting of StoreID, TillID, OperatorID, TransactionID along with it's own id number to maintain uniqueness on the "central" database used to house information across all locations.
As you are all aware, composite primary keys are not ideal, especially considering this is a heavily transactional system, and I would like to offer an viable solution, however the only option I can think of at the moment involves merging these ids into a SuperID against all tables, which doesn't seem to be much of an improvement.
Can anyone here think of a good viable solution to this problem?
Thanks
--------------------
Procrastinate Now!