Hello,
I am currently trying to store precomputed maps. The basic issue is to store a sequence $seq of integers (that are indeed element id, i.e. retrieved using db:node-pre).
Actually, I am storing it using db:replace($db,"map",<map>{fn:serialize($seq)}</map>) and retrieve the sequence using using fn:tokenize(db:open($db,"map")/map," ") ! xs:integer(.).
This way of doing stores integers as string, then call a cast string / integer to unserialize it. For large integer list (I am dealing with lists of size 134 Mo), it is quite time and mem consuming.
I was wondering if there exists a more efficient way to store and retrieve atomic list into BaseX ?