Merging Magama object repository

Keith Hodges keith_hodges at yahoo.co.uk
Fri Oct 6 12:28:12 UTC 2006


Hilaire Fernandes wrote:
> I am completely new to Magma, but I am looking at using it both on a 
> locale application in Squeak (Single-user mode) and in server/mode.
>
> I am looking at a situation where the locale application is some time 
> not connected to the net, in this case the objects are saved locally 
> in a single-user Magma DB.
> Then when connexion to the net is back, what is a proper way to 
> syncrhonize the local Magma DB to the distant Magma DB?
>
> Hilaire
> _______________________________________________
I am not an expert at all, Chris will have a far better idea than I. 
Thinking about it I would imagine that this would best be solved by a 
lower level database sync mechanism. Whereby you can connect the two 
databases and get them synced. Go off using the local copy and then come 
back at a later date to "sync" once more. I am guessing that It would 
need to be lower level if the two databases were to have compatible oids.

Up until recently there was no official database backup method, although 
I think that there is one now, so this would be a new area.

The other alternative is to set an aggressive read strategy that you 
know loads all of the data into memory without  leaving any proxies 
left. Then persist that object in the other database. If you have too 
much data to fit in memory (as one would assume since you are using a 
database) then paging objects from one db to the other would be the way 
to go.

best regards

Keith








		
___________________________________________________________ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


More information about the Magma mailing list