You are not logged in.
Using an SQL Server for Example MySQL with mORMot TSQLRecords i have the Problem at a Customer:
We need 1 mORMot in DMZ and 1 internal but using the same SQL Server.
Both Client insert in the same TSQLRecord.
now wi get duplicate key errors.
Is it possible (by option) that both Client get the latest free key before inserting ?
Rad Studio 12.1 Santorini
Offline
You could try to set EngineAddUseSelectMaxID=true.
It will use a "select max(ID)" before inserting. But it will be slow, and they still could be some duplicate key errors in some rare cases.
I see two potential solutions:
1. Use the new Relay feature and put it in the DMZ;
2. Use TSQLModel.SetIDGenerator on each node.
Offline
ty i'll try your ideas
Rad Studio 12.1 Santorini
Offline