Re: [holger: Re: Logger for libgda]
- From: David Marín Carreño <davefx bigfoot com>
- To: Rodrigo Moya <rodrigo gnome-db org>
- Cc: gnome-db-list gnome org, Lista desarrollo ASPL Fact <aspl-fact-devel lists sourceforge net>
- Subject: Re: [holger: Re: Logger for libgda]
- Date: Tue, 28 Nov 2000 22:45:17 +0100 (CET)
On 28 Nov 2000, Rodrigo Moya wrote:
> > Anyway, you have to fetch the data a transaction attempts to modify
> > from the server before applying that transaction, and log that data first.
> > This would be a great hint for avoiding collision of multiple transactions
> > from multiple systems:
> > Client a modifies some data and commits transaction. After that, client b
> > modifies the commited data (making it right again and applying some updates)
> > and commits his transaction. Now client a issues an undo. Updates of client
> > b would be lost, because they're not in the log of client a.
> >
>
> yes, another problem that is raised now. Special care should be taken to
> avoid this. And I ask
> again: how could we do that?
After any change in the database, the log mustn't save the old status. It
must save the changes. It is slower when undoing, but it hasn't this
problem.
And the log must be written only when the transaction has already
finished.
> > Hope this problems can be solved, because i think having multiple
> > undo levels on transactions is a great idea and a valuable feature
> > for libgda!
>
> I also like the idea of having the logger in GDA, but only if we find
> a good way of handling all these problems (and others that will
> appear). But remember that if it's going to be in GDA, it should be as
> generic as possible, making it suitable for ANY data source supported
> by GDA.
I cannot see any problem here... Sorry ;-)
Greetings
--
David Marín Carreño <davefx bigfoot com> mmmm
(aka DaveFX) ICQ UIN: 34866516 ""MM Mm
http://www.bigfoot.com/~davefx mmmm mMM MM
mM"""MM MM mMM
ASPL Fact official developer "M " mM""
http://aspl-fact.sourceforge.net mmmm
mM"""MM
Advanced Software Production Line SL "M
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]