[ 
https://issues.apache.org/jira/browse/OOZIE-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16339375#comment-16339375
 ] 

Todd Farmer commented on OOZIE-1717:
------------------------------------

I suspect a composite index on (status, created_time) will prove more effective 
for the query cited.  This "covering" index will allow equality matches on the 
leading column (important for MySQL and derivatives) for filtering, and then 
use the created_time in the same index to order and filter without needing to 
access table data.

> Index user_name column
> ----------------------
>
>                 Key: OOZIE-1717
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1717
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Purshotam Shah
>            Assignee: Attila Sasvari
>            Priority: Minor
>         Attachments: OOZIE-1717-00.patch
>
>
> User_name is one of the frequently used filter. Adding index should avoid  
> full db scan.
> Index need to be done for BUNDLE_JOBS,COORD_JOBS and WF_JOBS.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to