Re: Homegrown synchronization
- From: "David W. Fenton" <XXXusenet@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 03 Jan 2007 12:33:59 -0600
"rdemyan" <rdemyan@xxxxxxxxxxx> wrote in
news:1167806825.091163.59480@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
But that's only the date and time of the *file*, not the dataNo, actually each update file has the user's logon ID and the
and time of the updates included within it. If somebody
doesn't synch until a couple of days after they do updates,
the file could be dated several days after the actual data,
and that means you can't process them in order of file date --
you'd want to process them in the order that the changes were
made.
date which the update file was created in the file name. So I
do know when the update file was created and by whom.
But that doesn't tell you the date of the *data* changes in it.
Now, if you can count on the upload completing each time the user
exits the app, perhaps that's OK. But I'm not sure that's safe.
Each update DB that my code creates from the changes made by a
user to their loca copy of the backend file is unique and only
counts for that session. It is never reused.
That's not the point. The point is that you're assuming there is
never any latency between the upload and the updates it includes.
So the user name and date of the update
file I think do pretty much reflect the date of the data changes.
Update files are not reused. After the update file is sent to the
server, a copy of that update file is put into an archive folder.
Each session, MyApp creates a new update file with the USER ID and
the start date/time of the session.
If I understand your suggestion (and frankly I don't think I do),
what immediately comes to mind is that I'm passing a large file
(the production backend) around from server to remote and back.
My approach has been to pass a small file up to the server and
then pass the updated large file back down.
No, I'm not suggesting that at all. I'm suggesting that, rather than
depending on the data of the filename, instead processing the
records in the uploaded update file one by one against their
corresponding records and using the dates *in the records
themselves* to decide what to do with the data in them.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
.
- References:
- Re: Homegrown synchronization
- From: rdemyan
- Re: Homegrown synchronization
- From: David W. Fenton
- Re: Homegrown synchronization
- From: rdemyan
- Re: Homegrown synchronization
- From: David W. Fenton
- Re: Homegrown synchronization
- From: rdemyan
- Re: Homegrown synchronization
- From: David W. Fenton
- Re: Homegrown synchronization
- From: rdemyan
- Re: Homegrown synchronization
- Prev by Date: Re: Homegrown synchronization
- Next by Date: Re: Homegrown synchronization
- Previous by thread: Re: Homegrown synchronization
- Index(es):
Relevant Pages
|