Re: Re[6]: DB?
Mikael Hallendal <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.mr-project.user |
|---|---|
| Message-ID | <[email protected]> |
lör 2002-08-24 klockan 11.39 skrev Michele Ravani: > On 23 Aug 2002 23:59:07 +0200 Mikael Hallendal <[email protected]> wrote: > > I'm not sure I understand what you mean. > A cache would be a local file, which can act as a 'recovery repository' > should the application crash or anything, and which can act as a decoupling > between the application(s) and the 'proper' storage, e.g. database. I think we are talking about the same things here. How we currently built MrProject is that we have a libmrproject containing project logics. Here you have a MrpProject object containing a loaded project. When we write to a file we give that object to the output module which currently outputs it in an XML file. In the future we would be able to instead of outputting to an XML we could commit it to a database. What you are saying is that we should also have a "backup"-file which we write to every now-and-then (from the data in the MrpProject object)? Kind-of like auto-save but to a file instead of to the database. This can be done and shouldn't be to hard. This doesn't in any way change how it will be implemented and can be left for later. > I think there are some advantages to such an approach, the separation > between the application and the 'centralized' store being the most powerful > one IHMO. Yes, this is how it will be done. Regards, Mikael Hallendal -- Mikael Hallendal [email protected] CodeFactory AB http://www.codefactory.se/ Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918