<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — synchronizing offline databases with online ones]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=720&amp;type=atom" />
	<updated>2009-07-30T19:34:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=720</id>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=3145#p3145" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>roger wrote:</cite><blockquote><p>The main issue in such cases is to avoid duplicate IDs such as order numbers, invoice, etc. between the offline DB and the online DB. </p><p>Both start from the same starting point after a synchronization, but the moment a transaction is entered both will start with the next available number. Now both DBs have a new transaction with the same transaction ID, unless you operate with a different transaction number offset in the two databases. </p><p>Plain DB synchronization is unlikely to solve the issue.</p></blockquote></div><p>I posted the question over at the SymmetricDS forum, and this is the response I received:</p><p>By: chenson42</p><p>You might be able to do something programmatically in an IDataLoaderFilter.<br />You would have access to the node_id the data is coming from so you could add<br />a column to a central database that is also part of the primary key.&nbsp; &nbsp;Or you<br />could apply some type of offset algorithm based on the node that is<br />synchronizing.</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2009-07-30T19:34:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=3145#p3145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=3110#p3110" />
			<content type="html"><![CDATA[<p>The main issue in such cases is to avoid duplicate IDs such as order numbers, invoice, etc. between the offline DB and the online DB. </p><p>Both start from the same starting point after a synchronization, but the moment a transaction is entered both will start with the next available number. Now both DBs have a new transaction with the same transaction ID, unless you operate with a different transaction number offset in the two databases. </p><p>Plain DB synchronization is unlikely to solve the issue.</p>]]></content>
			<author>
				<name><![CDATA[roger]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=207</uri>
			</author>
			<updated>2009-07-21T20:46:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=3110#p3110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2992#p2992" />
			<content type="html"><![CDATA[<p>Hello Marche</p><p>Take a look at this: http://symmetricds.codehaus.org/ maybe it could be used for data synchronization?</p><p>We will need the same thing for a good POS module... when we get there.</p><p>Alvin</p>]]></content>
			<author>
				<name><![CDATA[alvin]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=176</uri>
			</author>
			<updated>2009-07-06T00:47:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2992#p2992</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2941#p2941" />
			<content type="html"><![CDATA[<p>I do not have access to a mysql expert. can you point me to the right direction? thanks</p>]]></content>
			<author>
				<name><![CDATA[marche]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=401</uri>
			</author>
			<updated>2009-06-25T15:29:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2941#p2941</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2939#p2939" />
			<content type="html"><![CDATA[<p>It might be possible through mysql.</p><p>Since we use innodb type we do everything in transactions and I believe there are mysql tools that can be used to sync.</p><p>If you do not have access to a mysql expert, let me know I may be able to find one (or figure it out myself)</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2009-06-25T15:10:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2939#p2939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2937#p2937" />
			<content type="html"><![CDATA[<p>thats not really what i need. One client (who will do regular transactions like make sales orders, etc. while not connected continuously to the main server) can only be offline and not connected to the other people who are also making transactions (i.e. sales orders). at the end of the day, id like their transactions to be synchronized. is this possible?</p>]]></content>
			<author>
				<name><![CDATA[marche]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=401</uri>
			</author>
			<updated>2009-06-25T11:14:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2937#p2937</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2936#p2936" />
			<content type="html"><![CDATA[<p>I am not sure what you would gain, but you could do a nightly backup (mysqldump) and then restore that backup to the offline server.</p><p>Of course you would not be able to perform any updates to the offline db that would be retained.</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2009-06-25T10:46:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2936#p2936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[synchronizing offline databases with online ones]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2933#p2933" />
			<content type="html"><![CDATA[<p>Hi,<br />I am new to frontaccounting and I was wondering if it is possible to have one client be offline (and have a locally installed mysql server which he connects to) and at the end of the day &quot;connect and synchronize&quot; to the online server which everyone else is connected to. One of the users cannot be online all the time (no connection).</p><p>Any help would be appreciated.</p><p>THanks</p>]]></content>
			<author>
				<name><![CDATA[marche]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=401</uri>
			</author>
			<updated>2009-06-25T03:40:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2933#p2933</id>
		</entry>
</feed>
