FSN#53649 Performance: tracking buiten de hoofdquery ook voor BO
svn path=/Website/branches/v2017.3/; revision=38345
This commit is contained in:
@@ -2066,7 +2066,7 @@ function res_list (pautfunction, params)
|
||||
function fnrowClassM(oRs) // tr-class
|
||||
{
|
||||
var class1 = "";
|
||||
if (groupres == 4)
|
||||
if (groupres == 4 && !minfo)
|
||||
{
|
||||
var cnt_recent = new Date(oRs("recentdatum").value);
|
||||
// Ik zou dit liever in de hoofdquery meenemen maar Oracle12 komt daar slecht uit
|
||||
@@ -2211,7 +2211,19 @@ function res_list (pautfunction, params)
|
||||
// resR of resC of resV
|
||||
var class1 = "res" + oRs("res_type").value + (oRs("ingang").value == 0 || oRs("verval").value == 0? " res_fatal " : "");
|
||||
|
||||
var cnt_recent = new Date(oRs("recentdatum").value);
|
||||
//var cnt_recent = new Date(oRs("recentdatum").value);
|
||||
// Ik zou dit liever in de hoofdquery meenemen maar Oracle12 komt daar slecht uit
|
||||
// Hier per regel ophalen is netto veel sneller
|
||||
var sql = "SELECT MAX(t.fac_tracking_datum) recentdatum"
|
||||
+ " FROM fac_tracking t"
|
||||
+ " , fac_srtnotificatie sn"
|
||||
+ " WHERE t.fac_srtnotificatie_key = sn.fac_srtnotificatie_key"
|
||||
+ " AND t.fac_tracking_refkey = " + oRs("rsv_ruimte_key").Value
|
||||
+ " AND sn.fac_srtnotificatie_xmlnode = 'reservering'";
|
||||
var roRs = Oracle.Execute(sql);
|
||||
var cnt_recent = new Date(roRs("recentdatum").Value);
|
||||
roRs.Close();
|
||||
|
||||
if (cnt_recent > recent)
|
||||
{
|
||||
class1 += " updated ";
|
||||
|
||||
Reference in New Issue
Block a user