Hi,

I wanted to discuss and open up to comments some performance related 
issues we encountered when working with the REST API.
In general working with the REST API was straightforward.  The only area 
where we experienced problems was when needing to check permissions on a 
page to see if a given user had edit access to a page.  To accomplish this 
we have to retrieve all pages, then iterate through the list of pages 
getting all objects, then iterate through the list of objects to get all 
permission objects and finally access the permissions,  The amount of data 
going back and forth between queries has an impact on performance.  As a 
side when we worked with the RPC a direct call to get permission objects 
simplifies the process.

Along these lines would it make sense to extend the REST API to include a 
collection of permissions where we could query on users or pages?  So 
given a permission setting and a list of users we would get back a list of 
pages or given a permission setting and a list of pages we would get back 
a list of users.  I would be interested to hear back on this need and how 
the semantics for extending the REST API should be to support this type of 
use case.

Thanks,
- Adam

Adam Hocek
Information Technology
Marist College
tel: 845-575-3948
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to