Some documentation:
http://common-lisp.net/project/elephant/doc/Repository-Migration-and-
Upgrade.html#Repository-Migration-and-Upgrade
http://common-lisp.net/project/elephant/doc/Migration-and-Upgrading-
API.html#Migration-and-Upgrading-API
This is the safest route:
Start lisp & load elephant:
=> (setf source-store (open-store '(:BDB "~/bdb/db-source")))
=> (setf target-store (open-store '(:BDB "~/bdb/db-result")))
=> (migrate target-store source-store)
Exit and restart lisp:
=> (open-store '(:BDB "~/bdb/db-result"))
That's it!
I recommend that you run a simple validation test:
- create a simple database
- populating it with a bunch of data, record the size
- delete 1/2 of the data randomly (or every other object)
- call (optimize-layout *store-controller*), record the compacted size
- do the migration as described above, record the resulting size
I'm sure we'd love to see the three different sizes that result from
this simple test and I'm sure you'd feel better knowing that it works!
Regards,
Ian
On Jul 11, 2007, at 2:21 PM, Dmitri V. Gorbatovsky wrote:
On Wednesday 11 July 2007 04:32, Ian Eslick wrote:
However, the best way to reclaim disk space today is to migrate from
your current BDB store to a new one. This will copy over only those
objects that are globally reachable; namely anything reachable from
the controller-root and all indexed instances.
...
If the documentation doesn't make this process clear, please write
back to us.
Good luck,
Ian
Thank you, Ian.
Yes, I am afraid, I can't get it from the documentation.
If it possible, could you please provide me with
simple example of whole database migration from one directory
~/bdb/db-source to another ~/bdb/db-result.
Thanks, Dmitri
_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel
_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel