473,789 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

replication with roaming laptops

I am trying to figure out the best way to handle a system with lots of
roaming laptops wanting to take the data with them.

I have the following requirement:

Web server (possibly several) which holds main database and everyone
connects to (PHP web site with updates)
Lots of laptops (up to 50) take copies of the master data with them to work
on locally (Same PHP web site)
Laptops now connect back online after making local updates and want to
synchronise their data.

Now the last item is the hard bit.

Should I write some clever PHP code to do the synchronisation ?
Or should I try and use the MySQL synchronisation functions?

I have tried the MySQL 2 way synchronisation before but not to this level.

As you can guess this also involves having a web server and MySQL server on
the laptops (any pointers to better ways here, please advise).

Any help or personal experience much appreciated

Regards Pete
Jul 20 '05 #1
7 1786
Peter King wrote:
I am trying to figure out the best way to handle a system with lots of
roaming laptops wanting to take the data with them.

I have the following requirement:

Web server (possibly several) which holds main database and everyone
connects to (PHP web site with updates)
Lots of laptops (up to 50) take copies of the master data with them
to work on locally (Same PHP web site)
Laptops now connect back online after making local updates and want to
synchronise their data.

Now the last item is the hard bit.

Should I write some clever PHP code to do the synchronisation ?
Or should I try and use the MySQL synchronisation functions?

I have tried the MySQL 2 way synchronisation before but not to this
level.

As you can guess this also involves having a web server and MySQL
server on the laptops (any pointers to better ways here, please
advise).

Any help or personal experience much appreciated

Regards Pete


Are they all taking distinct parts of the Master data or do they all have a
full copy of the Master data? Synchronizing the data between 50 independent
databases when they are all working from the same original set of data will
be quite a challenge.

Better to have them "check out" the data they are taking with them and then
"check it in" when they return. I'd do this programatically .

- Virgil
Jul 20 '05 #2
They will be taking all of the data with them but only updating small
amounts of it. It is a CRM system.
Problem is there are lots of dependant tables that require cascading updates
so increases the chance of errors. We have thought to use a timestamp on
updates and a table of checkouts of data, then do the work with the PHP. Not
sure if that is easier or not.

Regards Pete

-- "Virgil Green" <vj*@DESPAMobsy dian.com> wrote in message
news:Wd******** *******@newssvr 12.news.prodigy .com...
Peter King wrote:
I am trying to figure out the best way to handle a system with lots of
roaming laptops wanting to take the data with them.

I have the following requirement:

Web server (possibly several) which holds main database and everyone
connects to (PHP web site with updates)
Lots of laptops (up to 50) take copies of the master data with them
to work on locally (Same PHP web site)
Laptops now connect back online after making local updates and want to
synchronise their data.

Now the last item is the hard bit.

Should I write some clever PHP code to do the synchronisation ?
Or should I try and use the MySQL synchronisation functions?

I have tried the MySQL 2 way synchronisation before but not to this
level.

As you can guess this also involves having a web server and MySQL
server on the laptops (any pointers to better ways here, please
advise).

Any help or personal experience much appreciated

Regards Pete
Are they all taking distinct parts of the Master data or do they all have

a full copy of the Master data? Synchronizing the data between 50 independent databases when they are all working from the same original set of data will be quite a challenge.

Better to have them "check out" the data they are taking with them and then "check it in" when they return. I'd do this programatically .

- Virgil

Jul 20 '05 #3

"Virgil Green" <vj*@DESPAMobsy dian.com> wrote in message
news:Wd******** *******@newssvr 12.news.prodigy .com...
Peter King wrote:
I am trying to figure out the best way to handle a system with lots of
roaming laptops wanting to take the data with them.

I have the following requirement:

Web server (possibly several) which holds main database and everyone
connects to (PHP web site with updates)
Lots of laptops (up to 50) take copies of the master data with them
to work on locally (Same PHP web site)
Laptops now connect back online after making local updates and want to
synchronise their data.

Now the last item is the hard bit.

Should I write some clever PHP code to do the synchronisation ?
Or should I try and use the MySQL synchronisation functions?

I have tried the MySQL 2 way synchronisation before but not to this
level.

As you can guess this also involves having a web server and MySQL
server on the laptops (any pointers to better ways here, please
advise).

Any help or personal experience much appreciated

Regards Pete
Are they all taking distinct parts of the Master data or do they all have

a full copy of the Master data? Synchronizing the data between 50 independent databases when they are all working from the same original set of data will be quite a challenge.

Better to have them "check out" the data they are taking with them and then "check it in" when they return. I'd do this programatically .

- Virgil

The 'easy way' of doing roaming laptops is to keep a small database on the
laptop. Everytime the laptop does an INSERT, DELETE, or UPDATE, capture the
actual SQL in a local table on the laptop. When the laptop connects to the
server, simply replay the SQL in the table. There are some details to this
scheme, but I have used it, and it works.

Regards,

Rich
Jul 20 '05 #4

Rich R wrote:
"Virgil Green" <vj*@DESPAMobsy dian.com> wrote in message
news:Wd******** *******@newssvr 12.news.prodigy .com...
Peter King wrote:
I am trying to figure out the best way to handle a system with lots of roaming laptops wanting to take the data with them.

I have the following requirement:

Web server (possibly several) which holds main database and everyone connects to (PHP web site with updates)
Lots of laptops (up to 50) take copies of the master data with them to work on locally (Same PHP web site)
Laptops now connect back online after making local updates and want to synchronise their data.

Now the last item is the hard bit.

Should I write some clever PHP code to do the synchronisation ?
Or should I try and use the MySQL synchronisation functions?

I have tried the MySQL 2 way synchronisation before but not to this level.

As you can guess this also involves having a web server and MySQL
server on the laptops (any pointers to better ways here, please
advise).

Any help or personal experience much appreciated

Regards Pete
Are they all taking distinct parts of the Master data or do they

all have a
full copy of the Master data? Synchronizing the data between 50 independent
databases when they are all working from the same original set of

data will
be quite a challenge.

Better to have them "check out" the data they are taking with them
and then
"check it in" when they return. I'd do this programatically .

- Virgil
The 'easy way' of doing roaming laptops is to keep a small database

on the laptop. Everytime the laptop does an INSERT, DELETE, or UPDATE, capture the actual SQL in a local table on the laptop. When the laptop connects to the server, simply replay the SQL in the table. There are some details to this scheme, but I have used it, and it works.

Regards,

Rich


Jul 20 '05 #5
Rich,

We are designing an application and have a similar requirement to
Peter's. However, the user will only want to copy his information from
the central db to his laptop, make changes, and then update the central
db at some point. I like Virgil's 'check-in, check-out' scheme.

It would be nice if the MySQL version supporting 'triggers' was
available now to be able to capture the changes.

Would you consider sharing code examples of how you're accomplishing
what you are doing?

David

Jul 20 '05 #6

"David C" <dl****@gmail.c om> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Rich,

We are designing an application and have a similar requirement to
Peter's. However, the user will only want to copy his information from
the central db to his laptop, make changes, and then update the central
db at some point. I like Virgil's 'check-in, check-out' scheme.

It would be nice if the MySQL version supporting 'triggers' was
available now to be able to capture the changes.

Would you consider sharing code examples of how you're accomplishing
what you are doing?

David


Yes,David, I will put out some code tomorrow. Too much vino tonight. What do
you like about check-in,check-out? Also, even if you had triggers (update
and delete) it still would not work. In a nutshell, in all your inserts,
deletes, and updates, you need to keep a file (text or a table) of actual
statements. Just like the bin log does. And then you have to decide who wins
(just like many source code managers).

Regards,
Rich
Jul 20 '05 #7
Thanks for the feedback Rich. Hope it was good vino!

The application is a job estimating app. The estimators want to be able
to take their quotes with them on their laptops when they leave town
and work on them while disconnected from the corporate server, then
dump them back when they get back in the office. I don't know whether
we'll allow them to update any quotes other than their own or not. I
thought the "check-in" "check-out" terminology would be good to use in
the system.
Will the code you're sending be attached here?

Thanks again,
David

Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
305
by: David | last post by:
I am developing an application for use by a Company's sales force.The App. will run on Laptops, with a Master copy of the DB on the HQ PC.There will be number of laptop users.Basically what I want to do is - keep all of the information on all of the Laptops + HQ in sync.Is this Replication - if so where can I find out more about it (How exactly it works etc).If not then I will need to dump and field changes on each laptop and send it to HQ for...
2
1803
by: Ray | last post by:
Hi, I have an Access 97 Database on the server, which gets updated from Desktops thru a LAN. Employees who have to go to offsite locations, carry the latest copy of the MDB. At the end-of-the day when they return to the office or they send the copy of the MDB, the Laptop version (with their current entries) has to be synchronized with the MDB sitting on the server. How do I go about setting up this? I would appreciate suggestions...
4
545
by: Andi Plotsky | last post by:
I need to synchronize 3 databases (1 Master and 2 replicas). I thought I'd give the Replica feature in Access2000 a whirl. I'm not sure I'm THAT impressed.....but maybe I'm just doing something wrong. I'll outline the issues below and then maybe someone who has experience with replicating this way can tell me if this is the route I should take, or if I should just use my own routine which compares strings for each field. 1) I've...
6
3888
by: John | last post by:
Hi We have an access app (front-end+backend) running on the company network. I am trying to setup replication for laptop users who go into field and need the data synched between their laptops and the server upon return to the office. I am planning it this; Move all access tables to sql server and then link the tables to access front-end mdb app (using odbc?). Copy the same setup (access front end + sql backend) onto each laptop....
3
2418
by: dlesandrini | last post by:
I need advice about my decision to go with Replication in general. This post was placed on the Microsoft Replication newsgroup, but I really value the feedback that comes from this group as well. I have a new client who want their Excel data moved to Access. They have only 4-6 users of this data and a couple of them want to work disconnected, with their laptops and synchronize when they come into the office. The database will be...
9
3934
by: David W. Fenton | last post by:
See: Updated version of the Microsoft Jet 4.0 Service Pack 8 replication files is available in the Download Center http://support.microsoft.com/?scid=kb;en-us;321076 This includes the Jet 4 synchronizer. This allows anyone to do indirect replication, even without
6
1886
by: Alex | last post by:
Hello, We are currently running our Access 2003 database over Citrix. We have been using a single front-end, but reading over topics in this group has made it clear that I should create separate front-ends for each user...so I will do so...thanks to this group for the great research. My question: on occasions, staff have to access the database and they will not have a network connection. I am considering setting up replication...
8
1485
by: Sharktbbtfy | last post by:
Hi, hoping someone can help. The situation is that an app I designed is installed on a desktop PC and six laptops,separately, which synchronise to the desktop once a day at random times. I have two questions: 1) Is it advisable to not have the design master as the mothership but have a replica on the desktop where the backend is named, e.g., replica of
0
2277
by: robseflops | last post by:
Hi there, We have an issue with click-once and roaming profiles: Our users have laptops with roaming profiles. The installation of the .Net 2.0 application went smoothly and the app works properly as long as the user is online. When the user clicks the menu-item (installed by click-once) when the laptop is offline the users gets a message saying: Shortcut
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.