Moti Asayag has uploaded a new change for review.

Change subject: core: Fetch Jobs by last update time
......................................................................

core: Fetch Jobs by last update time

The patch updates the query of fetching jobs by returning the jobs
ordered first by running job (identified by status 'STARTED') ordered by
last update time in a descending order, followed by the completed jobs
(regardless their status) ordered by last update time.
The sort is performed on DB level, therefore the comparator is not
required anymore.

Change-Id: Ib5eff10ebd0f25f3f5080a97b40c78ab50737b0d
---
M backend/manager/dbscripts/job_sp.sql
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetJobsByOffsetQuery.java
2 files changed, 9 insertions(+), 24 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/70/2070/1
--
To view, visit http://gerrit.ovirt.org/2070
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5eff10ebd0f25f3f5080a97b40c78ab50737b0d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to