File as temporary data storage


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: File as temporary data storage

  1. #1
    Join Date
    Sep 2005
    Posts
    10

    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

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560

    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

  1. Saving data in a binary file
    By teja8100 in forum VB Classic
    Replies: 6
    Last Post: 07-08-2005, 07:03 PM
  2. Save Image to Field
    By Chicho in forum VB Classic
    Replies: 11
    Last Post: 10-01-2003, 01:00 AM
  3. NT For command and pipe symbol in data file problem
    By Michael Liang in forum Enterprise
    Replies: 2
    Last Post: 06-21-2002, 10:48 AM
  4. Replies: 1
    Last Post: 03-14-2000, 01: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center