|
I ran this in a loop 100 times for the limited user and for admin, and the limited user was roughly 50X slower than admin:
xdmp:eval(concat(
'xquery version "1.0-ml";',
'cts:element-value-match(xs:QName("element"), "value*", "limit=1")'),
(),
<options xmlns="xdmp:eval">
<user-id>{ xdmp:user("limited") }</user-id>
</options>)
The limited user has a role with read permissions on the documents containing those values (obviously, since it returns non-empty results), and also has the app-user role. Otherwise, this user has no other roles. With log level = debug, nothing really
jumps out at me. I only see occasional "InMemoryStand", "OnDiskStand", and "Saving" messages, and they appear regardless of the user running the query.
-Will
|
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
