On Fri, 2022-07-15 at 18:04 +0000, Eliot Kimber wrote:
collection($rkDatabase)/doc-where-used-index/where-used- entry[string(@key) eq string(db:node-id($node))]
Where the markup is shown in [1] below.
Using prof:track() I’m measuring a consistent 0.036 seconds per lookup,
could it be opening the collection that takes time? Or are there hundreds of thousands of where-used-entry elements, and, if so, do you have an attribute value index?