Thanks From: [email protected] [mailto:[email protected]] On Behalf Of Tim Meagher Sent: Thursday, February 26, 2009 2:05 PM To: 'General Mark Logic Developer Discussion' Subject: RE: [MarkLogic Dev General] Permission problem
I had a similar problem. I got around it by spawning a task using xdmp:spawn() for each document. It queues up the tasks on the task server to asynchronously apply permissions for each document. You just need to make sure that the task server queue is large enough to queue all the tasks and have room to run any others. Tim Meagher ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Pritsker, Galina Sent: Thursday, February 26, 2009 2:00 PM To: '[email protected]' Subject: [MarkLogic Dev General] Permission problem I have about 60000 documents on Mark Logic database. I would like to set up permission for read and write users In order to do that I am running the following script : for $i in cts:uris() [0 to 60000] return xdmp:document-set-permissions($i, (xdmp:permission("digital-read","read"), xdmp:permission("digital-write","insert"), xdmp:permission("digital-write","update"), xdmp:permission("digital-write","read") )) I could not process all documents because getting the following error: XDMP-EXTIME: Time limit exceeded. So I ran Xquery with small range from 1 to 10000 and so on, but when I login with user who has read or write privileges there are only 29654 documents that they can access What did I do wrong? Thanks, Galina
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
