http://www.perlmonks.org?node_id=867267


in reply to Re^4: Doess MooseX::Storage duplicate an object referenced multiple times?
in thread Does MooseX::Storage duplicate an object referenced multiple times?

We already discussed this on IRC, but I will put it here so that others can see.

MooseX::Storage does not handle recreating references in this way. It is simply a serialization module that takes an object, decomposes it and writes it out to disk in the chosen format. This works best with object trees, meaning objects that do not share references with other instances, kind of a DAG (directed acyclic graph) but not exactly.

What you have going on here is more of an object graph, which is more appropriate for KiokuDB, which does handle shared object references in the way you need them.

-stvn
  • Comment on Re^5: Doess MooseX::Storage duplicate an object referenced multiple times?

Replies are listed 'Best First'.
Re^6: Doess MooseX::Storage duplicate an object referenced multiple times?
by daverave (Scribe) on Oct 25, 2010 at 17:27 UTC
    Thank you again stvn, I am now making my first steps with KiokuDB.