Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replication Manager
Message
From
03/01/1998 16:25:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/01/1998 16:04:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00069009
Message ID:
00069178
Views:
43
>>We do it ourselves yet (don't know if a 3rd party exists). But I wonder, does this "Manager" do it without any user intervention (except dialing etc) ?
>
>How do you do this? Do you create a transaction log? Are you willing to share your knowledge and code?
>TIA.
Of course I would share. Just give me some time to make some generalization on code (if kid lets me I'll do it tonight). I use different strategies based on clients. For a startup here is what I do (it seems kid will only let to write a few more lines for tonight) :
  1. Some of clients want to check modified records. For those I do a union first, than present them the duplicates (any change in any field would produce a duplicate) and let them to select the correct one.

  2. For others one of the sites (there are two sites working async in this type) is the master and the other is slave
  3. Before data transfer a routine classifies the data as appended, changed and deleted on both sites.

    • Appended records from both sites are appended, changing sequential ids if necessary
    • Changed data is changed first from slave than from master thus if same recs changed on both master modification takes precedence
    • And finally deletions are applied from both sites.

    • Both have pros and cons of course. In the latter if an office is superior and user intervention is not wanted, data update needs only the records that are appended, changed or deleted. This could be applied to the first case also. In none of the above a transaction log is not created. Transaction logs could help a lot but couldn't develop a strategy with it on my own yet. Code will be ready by monday.
      Çetin Basöz

      The way to Go
      Flutter - For mobile, web and desktop.
      World's most advanced open source relational database.
      .Net for foxheads - Blog (main)
      FoxSharp - Blog (mirror)
      Welcome to FoxyClasses

      LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform