#1 2018-04-11 23:15:25

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Partial replication

AB,

It would be nice to have the possibility to filter the records for every slave server. Adding an extra parameter to RecordVersionSynchronizeSlaveStart, RecordVersionSynchronizeSlave and RecordVersionSynchronizeSlaveToBatch  could be one way to do it. Something like this:

function TSQLRestServer.RecordVersionSynchronizeSlaveToBatch(Table: TSQLRecordClass;
  Master: TSQLRest; var RecordVersion: TRecordVersion; MaxRowLimit: integer;
  OnWrite: TOnBatchWrite = nil; WhereClause: RawUTF8 = ''): TSQLRestBatch; 

Of course a couple of lines in the code require  changes as well, but I assume it would not take much time.

Last edited by Leslie7 (2018-04-11 23:25:02)

Offline

Board footer

Powered by FluxBB