[ 
http://jira.nuxeo.org/browse/NXP-3068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48875#action_48875
 ] 

Florent Guillaume commented on NXP-3068:
----------------------------------------

Done.
http://hg.nuxeo.org/nuxeo/nuxeo-platform/rev/f656daeb0bc0
(http://hg.nuxeo.org/nuxeo/nuxeo-core/rev/db295f5a9893 was also required)

QueryModel calls (getDocuments, getResultsProvider) now take a CoreSession as 
first argument in order to have a context for the query.

To stay stateless, QueryModel's handling of the (rarely used) persistent 
document has changed a bit. QueryModelActionsBean now creates the persistent 
query model only when persist() is called.



> Switch queries from SearchService to CoreSession
> ------------------------------------------------
>
>                 Key: NXP-3068
>                 URL: http://jira.nuxeo.org/browse/NXP-3068
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Improvement
>          Components: Query / Search
>            Reporter: Florent Guillaume
>            Assignee: Florent Guillaume
>            Priority: Major
>             Fix For: 5.2 M4
>
>
> NXP-3067 has added the proper CoreSession API to do queries with batching and 
> count, this should be used directly instead of the 
> SearchService.searchQuery() API that is obliged to open a new session for 
> each query.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to