-
File as temporary data storage
Hi all,
If my application can not establish connection with the server it is storing 8000 records in files.After connection with the server resumes it sends those records to server one by one and simultaneously deletes those records from the file.
So if i use ObjectSerialization then I will not be able to delete a record from the file. Should I go with XML(can I delete a record from a xml?) or is there any other suggestion?
With regards, Ajse
-
Nothing complicated works...
Serailzation you say..., then I assume that you are handling these files
of records as serializable objects (I think I have answered this before). I
also assume that you are in control of the code on the server side and that
it is vitally important that you don't delete a local record that hasn't been
transferred properly and that you cannot update a record that is
scheduled for transfer.
My suggestion:
(there may well be obstacles in your scenario that prohibits this method)
Don't delete while transferring, let the server respond to the transfer with a
list of references for all the transferred records after the load has completed.
This response could be a short one if all was transferred and loaded ok.
Then do the local deletion.
eschew obfuscation
Similar Threads
-
By teja8100 in forum VB Classic
Replies: 6
Last Post: 07-08-2005, 06:03 PM
-
By Chicho in forum VB Classic
Replies: 11
Last Post: 10-01-2003, 12:00 AM
-
By Michael Liang in forum Enterprise
Replies: 2
Last Post: 06-21-2002, 09:48 AM
-
By niranjan in forum VB Classic
Replies: 1
Last Post: 03-14-2000, 12:27 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|