[Cuis-dev] Design idea with persistence of objects
Hilaire Fernandes
hfern at free.fr
Mon Sep 21 09:39:27 PDT 2026
Hi Hernan,
I already use disk proxy so a document can be saved in its own tree,
independently of the whole root data tree.
Somehow, meta information about the documents are needed to present them
appropriately to the user. I was thinking about a metafile to avoid
loading the doc.obj to have that information. Or likely faster, to a
have an intermediate object as Juan suggested containing the metainfo.
This object would be saved in the root data data.obj file.
myData/
├── data.obj
├── FORON
│ └── 937
│ └── Mathématiques
│ ├── 01#-#Nombres#Naturels
│ │ ├── 2026-08-21-15h00m10s
│ │ │ ├── doc.obj
│ │ │ ├── import.pdf
│ │ │ └── preview.jpg
│ │ ├── 2026-08-24-08h15m26s
│ │ │ ├── doc.obj
│ │ │ ├── import.pdf
│ │ │ ├── pageCount
│ │ │ └── preview.jpg
│ │ ├── 2026-08-24-08h21m39s
│ │ │ ├── doc.obj
│ │ │ ├── import.pdf
│ │ │ ├── pageCount
│ │ │ └── preview.jpg
Le 21/09/2026 à 13:39, Hernán Wilkinson via Cuis-dev a écrit :
> Hi Hilaire,
> have you tried doing a lazy loading? Do you need to load all the
> documents at once?
> You could use proxies for the persistent objects you want to load
> lazily and only read the object from disk when needed, as ORM do when
> persisting in relational databases.
>
> I hope this helps.
> Hernan.
--
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260921/e1424081/attachment.htm>
More information about the Cuis-dev
mailing list