<div dir="auto">Image segments can be useful for superfast save/load of a graph of objects. I dont know how they compare with the serialization you are doing, it might be worth doing some tests to compare.</div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, 20 Sep 2026 at 17:53 Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p><font size="4" style="color:rgb(0,0,0)">Hi, </font></p>
    <p><font size="4" style="color:rgb(0,0,0)">I am looking for idea and design idea regarding
        persistence of objects.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">In the DyboApp, the user data are saved in a tree
        of objects</font></p>
    <ul>
      <li><font size="4" style="color:rgb(0,0,0)">userData (root)</font></li>
      <ul>
        <li><font size="4" style="color:rgb(0,0,0)">schools</font></li>
        <ul>
          <li><font size="4" style="color:rgb(0,0,0)">classGroups</font></li>
          <ul>
            <li><font size="4" style="color:rgb(0,0,0)">courses</font></li>
            <ul>
              <li><font size="4" style="color:rgb(0,0,0)">topics</font></li>
              <ul>
                <li><font size="4" style="color:rgb(0,0,0)">documents</font></li>
              </ul>
            </ul>
          </ul>
        </ul>
      </ul>
    </ul>
    <p><font size="4" style="color:rgb(0,0,0)">The most complex data are the documents. A
        document represents a metaphor of pages with handwritten notes,
        and an arbitrary number of tools, dropped pictures from the host
        filer, etc. Moreover a page may have a model as simple as a
        background color, or a particular design as horizontal lines,
        grid, graph paper or a pdf.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">Because of this complexity, I serialize the
        documents in individual compressed files, it is fast at saving
        and loading. Because serializing the userData root save all the
        data by default, each Document instances in the documents
        collection (at the bottom of the tree above), are in fact
        DiskProxy containing the path to the independently serialized
        Document instances.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">This works well when saving the whole userData or
        an individual Document. However, at start-up, accessing the
        userData load everything, which is fine expect for the documents
        collection and its Documents instances (through the Disk proxy).
        As the documents collection, it may become slow when I will have
        several hundreds of documents.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">I have some ideas how to improve this, but I am
        interested to read other opinions and experience on the matter.</font></p>
    <p><font size="4" style="color:rgb(0,0,0)">Thanks</font></p>
    <p><font size="4" style="color:rgb(0,0,0)"><br>
      </font></p>
    <pre cols="72" style="font-family:monospace">-- 
<a href="http://mamot.fr/@drgeo" target="_blank" style="font-family:monospace">http://mamot.fr/@drgeo</a></pre>
  </div>

-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>