Synchronization

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Lotiara
Posts: 1
Joined: Wed 04 Apr 2012 05:11

Synchronization

Post by Lotiara » Wed 04 Apr 2012 05:28

Hi All,

I am testing Unidac Components and don't know how to do a simple thing.
I have an application which is connected one or two times a day with an MySQL server and uses a local SQLite database.

What is the best way to manually synchronize two identical tables ?
TUniscript, TUniloader, TUnidump ?
I don't want to use some server replication mechanism, I want to trigger the synchro myself and basically make an algorithm like:

select * from LocalDB.Invoices where sincro > mylastsincro.
UniDump/UniScript/whatever.CahedUpdates;
starttransaction
While ther are fields
--->insert fields into UniDump/UniScript/whatever
endWhile
UniDump/UniScript/whatever.excecutesql
UniDump/UniScript/whatever.Applyupdates;
commit;



BTW any opinion about SQLlite vs EmbeddedMYSQL

Thank you for your time.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 05 Apr 2012 11:29

Hello,

For resolving your synchronization task, the optimal decision will be to use our TCRBatchMove component (it is on the Data Access tab), which is designed for automatic data transfer between DataSets, and provides for several modes of data transfer. You can find more details on this component in the UniDAC help. The DB choice depends on the tasks to solve, therefore it is rather difficult to compare these two DBs abstractly. There are links to the websites of these DBs developers below, where the main features of these DBs are represented, so you can compare them in agreement with your tasks.

http://www.sqlite.org/whentouse.html
http://mysql.com/oem/
http://www.mysql.com/oem/faq.html

Post Reply