[ 
http://jira.xwiki.org/jira/browse/XWIKI-2083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22387
 ] 

Sergiu Dumitriu commented on XWIKI-2083:
----------------------------------------

The rules for DBList should be:
* If no classname, id or value fields are selected, return a query that return 
no rows.
* If only the classname is provided, select all document names which have an 
object of that type.
* If only one of id and value is provided, select just one column.
* If id = value, select just one column.
* If no classname is provided, assume the fields are document properties.
* If the document is not used at all, don't put it in the query.
* If the object is not used at all, don't put it in the query.


> Improve the way DBList and DBTreeList generate queries
> ------------------------------------------------------
>
>                 Key: XWIKI-2083
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2083
>             Project: XWiki Core
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.3 M1
>            Reporter: Sergiu Dumitriu
>            Priority: Minor
>
> The current way of generating queries based on the classname, idField, 
> valueField and parentField properties has some issues:
> - Does not correctly work with missing values;
> - Generates unoptimised queries;
> - Cannot be properly used to select document properties.

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

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to