I have a philosophical question
My customer has 7 locations, and we are going to build and install a Point of Sales system in each one. They will connect to either a MySQL backend or a SQL Server, we haven’t decided that yet.
Each store will be storing data in Jet, SQL Express, or MySQL and using a VPN to the backend will “update” data periodically. The point of this is that if the VPN is down, with the exception of Credit Card Processing, store operation will continue.
This proposes a little question of how to engineer the primary keys, that are store specific, to remain unduplicated across the network.
I thought of three schemas: (The system produces about a half a million records per year.)
1. Separate the Stores by ten million or so, that’s the way the previous system works. But they created a one million record separation and soon it would have crashed if they had not decided to replace it.
2. The second would be to concatenate a store Identifier onto the primary keys.
3. The third would be to use a two field Primary key, normally I would not consider this but it would actually be very consistent.
What do ya’ll think?
My customer has 7 locations, and we are going to build and install a Point of Sales system in each one. They will connect to either a MySQL backend or a SQL Server, we haven’t decided that yet.
Each store will be storing data in Jet, SQL Express, or MySQL and using a VPN to the backend will “update” data periodically. The point of this is that if the VPN is down, with the exception of Credit Card Processing, store operation will continue.
This proposes a little question of how to engineer the primary keys, that are store specific, to remain unduplicated across the network.
I thought of three schemas: (The system produces about a half a million records per year.)
1. Separate the Stores by ten million or so, that’s the way the previous system works. But they created a one million record separation and soon it would have crashed if they had not decided to replace it.
2. The second would be to concatenate a store Identifier onto the primary keys.
3. The third would be to use a two field Primary key, normally I would not consider this but it would actually be very consistent.
What do ya’ll think?