Hello

I'm making a PDA project that uses a data base. That data base is saved in a
xml file. When the application starts up, I load the xml file in memory. The
application makes changes in the data base (which is in the memory of the
PDA) and finally, when the program closes, it saves all data (which are in
the data base) in the xml file.

My question is: is there any way to save only the modifications instead of
to save again all data base in the xml file? Note:In the beginning, the
application doesn`t know which registers of the data base are going to
modify.

Thanks.

Re: Database in PDA: how to improve the time of update? by Nicholas

Nicholas
Fri May 28 10:57:50 CDT 2004

Vicente Nicolau wrote:

> Hello
>
> I'm making a PDA project that uses a data base. That data base is saved in a
> xml file. When the application starts up, I load the xml file in memory. The
> application makes changes in the data base (which is in the memory of the
> PDA) and finally, when the program closes, it saves all data (which are in
> the data base) in the xml file.
>
> My question is: is there any way to save only the modifications instead of
> to save again all data base in the xml file? Note:In the beginning, the
> application doesn`t know which registers of the data base are going to
> modify.
>
> Thanks.
>
>
>
If I get it right you are asking: is it possible to make in place
changes of the XML file without writing all the data again? The answer
is no since it is a simple text file and you cannot add or remove
somithing in the middle of it. I would suggest to store database changes
in a separate xml file, but that would increase compexity of database
update.

--
SY, Nicholas Tsipanov

Re: Database in PDA: how to improve the time of update? by Vicente

Vicente
Mon May 31 02:25:55 CDT 2004

Thanks for your suggest.



"Nicholas Tsipanov" <nicholas_NO_SPAM@softspb.com> escribió en el mensaje
news:eYvRLyMREHA.3744@TK2MSFTNGP10.phx.gbl...
> Vicente Nicolau wrote:
>
> > Hello
> >
> > I'm making a PDA project that uses a data base. That data base is saved
in a
> > xml file. When the application starts up, I load the xml file in memory.
The
> > application makes changes in the data base (which is in the memory of
the
> > PDA) and finally, when the program closes, it saves all data (which are
in
> > the data base) in the xml file.
> >
> > My question is: is there any way to save only the modifications instead
of
> > to save again all data base in the xml file? Note:In the beginning, the
> > application doesn`t know which registers of the data base are going to
> > modify.
> >
> > Thanks.
> >
> >
> >
> If I get it right you are asking: is it possible to make in place
> changes of the XML file without writing all the data again? The answer
> is no since it is a simple text file and you cannot add or remove
> somithing in the middle of it. I would suggest to store database changes
> in a separate xml file, but that would increase compexity of database
> update.
>
> --
> SY, Nicholas Tsipanov