· 8 years ago · May 22, 2018, 01:08 PM
1evgenii:~/.ror/mtt/ezcall (release ✗) tail -n6495 -f ./log/development.log
2 (140.0ms) SET NAMES utf8 COLLATE utf8_unicode_ci, @@SESSION.sql_mode = 'NO_ENGINE_SUBSTITUTION', @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
3 Client Load (147.3ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
4 CalendarSchedule Load (153.6ms) SELECT `calendar_schedules`.* FROM `calendar_schedules` WHERE `calendar_schedules`.`client_id` = 261 AND `calendar_schedules`.`id` = 1167 ORDER BY `calendar_schedules`.`position` ASC LIMIT 1
5 CallType Load (146.3ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`id` IN (10171, 10172, 10158, 10173, 10174, 10175, 10176, 10177, 10178, 10179, 10180, 10181, 10164, 10182, 10183, 10170, 10167, 10168, 10169, 10186, 10187, 10185, 10195, 10198, 10196, 10199, 10200, 16463, 10194, 10147, 13922, 14299, 16041)
6 CalendarSchedule Load (139.6ms) SELECT `calendar_schedules`.* FROM `calendar_schedules` WHERE `calendar_schedules`.`client_id` = 261 AND `calendar_schedules`.`id` = 1167 ORDER BY `calendar_schedules`.`position` ASC LIMIT 1
7 Block Load (139.6ms) SELECT `blocks`.* FROM `blocks` INNER JOIN `block_schedules` ON `blocks`.`block_schedule_id` = `block_schedules`.`id` WHERE `block_schedules`.`id` = 356 AND `blocks`.`id` = 23591 ORDER BY start_date asc, end_date asc LIMIT 1
8 BlockSchedule Load (142.1ms) SELECT `block_schedules`.* FROM `block_schedules` WHERE `block_schedules`.`id` = 356 LIMIT 1
9 RuleSet Load (140.0ms) SELECT `rule_sets`.* FROM `rule_sets` WHERE `rule_sets`.`id` = 1232 LIMIT 1
10 Block Load (138.9ms) SELECT `blocks`.* FROM `blocks` INNER JOIN `block_schedules` ON `blocks`.`block_schedule_id` = `block_schedules`.`id` WHERE `block_schedules`.`id` = 356 AND (blocks.start_date >= '2018-05-29' AND blocks.end_date <= '2018-09-03') ORDER BY start_date asc, end_date asc
11INFO : (05-17 07:40:29) phase: Scheduler::Base
12INFO : (05-17 07:40:29) from: 2018-05-29 to: 2018-09-03
13 Rule Load (153.3ms) SELECT `rules`.* FROM `rules` WHERE `rules`.`rule_set_id` = 1232 ORDER BY applied desc, weight desc
14INFO : (05-17 07:40:30) rule configurations: Weekend 1
15 - 'Current Weekend / Weekday Point Targets' applied {"opt1"=>{"applied"=>"0"}, "opt2"=>{"applied"=>"0"}, "threshold"=>"0"} weight:10
16 - 'Cumulative Weekend / Weekday Point Targets' applied {"opt1"=>{"applied"=>"0"}, "opt2"=>{"applied"=>"0"}, "threshold"=>"0"} weight:3
17 - 'Weeks Between Same Day Of Week' applied {"opt1"=>{"applied"=>"0", "value"=>""}} weight:1
18 - 'Cumulative Assignment Targets' not applied
19 - 'Cumulative Combined Assignment Targets' not applied
20 - 'Cumulative Daily Assignment Targets' not applied
21 - 'Cumulative Day of Week Targets' not applied
22 - 'Cumulative Hour Targets' not applied
23 - 'Cumulative Point Targets' not applied
24 - 'Cumulative Weekend / Weekday Assignment Targets' not applied
25 - 'Cumulative Weekend / Weekday Combined Assignment Targets' not applied
26 - 'Cumulative Weekend / Weekday Hour Targets' not applied
27 - 'Current Assignment Targets' not applied
28 - 'Current Combined Assignment Targets' not applied
29 - 'Current Daily Assignment Targets' not applied
30 - 'Current Day of Week Targets' not applied
31 - 'Current Hour Targets' not applied
32 - 'Current Point Targets' not applied
33 - 'Current Weekend / Weekday Assignment Targets' not applied
34 - 'Current Weekend / Weekday Combined Assignment Targets' not applied
35 - 'Current Weekend / Weekday Hour Targets' not applied
36 - 'Pending Call Requests' not applied
37 - 'Pending No-call Requests' not applied
38 - 'Assignments Per Day' not applied
39 - 'Days Between Assignments' not applied
40 - 'Days Between Same Assignment' not applied
41 - 'Unassigned Days' not applied
42 - 'Weeks Between Same Assignment On Same Day Of Week' not applied
43INFO : (05-17 07:40:30) started: Scheduler::Cache::Collector.collect_all
44INFO : (05-17 07:40:30) collect_staffs
45 Staff Load (970.7ms) SELECT DISTINCT `staffs`.* FROM `staffs` INNER JOIN `assign_staff_types` ON `assign_staff_types`.`staff_id` = `staffs`.`id` INNER JOIN `staff_types` ON `staff_types`.`id` = `assign_staff_types`.`staff_type_id` WHERE `staffs`.`client_id` = 261 AND `staffs`.`take_call` = 1 AND `staffs`.`active` = 1 ORDER BY `staffs`.`display_order` ASC, last_name, first_name
46 Client Load (280.8ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261
47 StaffSpecialization Load (147.2ms) SELECT `staff_specializations`.* FROM `staff_specializations` WHERE `staff_specializations`.`staff_id` IN (17150, 17151, 26974, 17152, 23458, 17153, 21519, 21141, 17259, 17154, 23038, 26975, 17260, 17157, 21430, 21568, 17158, 17353, 17262, 21433, 17159, 17354, 21518, 17599, 17160, 17161, 26121, 17266, 17595, 21964, 17162, 17163, 17269, 17270, 26122, 17164, 17165, 17166, 17167, 23095, 17168, 17271, 17272, 17273, 17170, 17171, 23545, 19559, 17355, 21203, 17274, 17276, 19349, 17172, 17277, 17173, 17174, 17362, 17175, 17279, 17176, 17280, 17177, 17178, 17179, 17281, 21798, 17282, 17180, 17181, 17182, 17283, 17184, 17284, 17185, 17285, 17286, 17287, 17288, 17357, 17186, 17292, 17187, 17739, 17294, 17295, 17296, 17189, 17190, 17358, 17297, 17298, 17336, 17192, 17364, 17193, 17335, 17334, 17333, 17194, 17195, 17332, 17602, 17196, 17331, 26149, 17330, 17197, 21677, 17198, 17384, 17200, 17201, 17326, 17210, 17211, 17212, 17213, 17214, 17325, 17324, 17216, 17323, 17322, 17217, 21025, 17321, 17218, 17219, 17220, 17221, 17320, 17222, 22981, 22972, 17261, 17319, 17223, 17225, 17226, 17227, 17228, 17318, 17317, 22888, 17229, 17315, 17231, 17314, 17312, 17232, 17233, 17234, 21024, 17311, 17310, 17208, 17236, 17237, 17238, 20023, 17309, 17239, 17240, 17241, 17603, 17243, 17594, 17306, 17291, 17244, 17245, 17246, 17247, 17248, 17250, 17305, 17251, 17386, 17252, 17253, 20372, 17601, 23459, 17303, 17254, 22569, 22716, 17255, 22754, 17302, 17256, 17257, 17300, 17299, 17738)
48 Specialization Load (140.8ms) SELECT `specializations`.* FROM `specializations` WHERE `specializations`.`id` = 681 ORDER BY `specializations`.`priority` ASC
49 StaffCallType Load (8276.0ms) SELECT `staff_call_types`.* FROM `staff_call_types` WHERE `staff_call_types`.`staff_id` IN (17150, 17151, 26974, 17152, 23458, 17153, 21519, 21141, 17259, 17154, 23038, 26975, 17260, 17157, 21430, 21568, 17158, 17353, 17262, 21433, 17159, 17354, 21518, 17599, 17160, 17161, 26121, 17266, 17595, 21964, 17162, 17163, 17269, 17270, 26122, 17164, 17165, 17166, 17167, 23095, 17168, 17271, 17272, 17273, 17170, 17171, 23545, 19559, 17355, 21203, 17274, 17276, 19349, 17172, 17277, 17173, 17174, 17362, 17175, 17279, 17176, 17280, 17177, 17178, 17179, 17281, 21798, 17282, 17180, 17181, 17182, 17283, 17184, 17284, 17185, 17285, 17286, 17287, 17288, 17357, 17186, 17292, 17187, 17739, 17294, 17295, 17296, 17189, 17190, 17358, 17297, 17298, 17336, 17192, 17364, 17193, 17335, 17334, 17333, 17194, 17195, 17332, 17602, 17196, 17331, 26149, 17330, 17197, 21677, 17198, 17384, 17200, 17201, 17326, 17210, 17211, 17212, 17213, 17214, 17325, 17324, 17216, 17323, 17322, 17217, 21025, 17321, 17218, 17219, 17220, 17221, 17320, 17222, 22981, 22972, 17261, 17319, 17223, 17225, 17226, 17227, 17228, 17318, 17317, 22888, 17229, 17315, 17231, 17314, 17312, 17232, 17233, 17234, 21024, 17311, 17310, 17208, 17236, 17237, 17238, 20023, 17309, 17239, 17240, 17241, 17603, 17243, 17594, 17306, 17291, 17244, 17245, 17246, 17247, 17248, 17250, 17305, 17251, 17386, 17252, 17253, 20372, 17601, 23459, 17303, 17254, 22569, 22716, 17255, 22754, 17302, 17256, 17257, 17300, 17299, 17738)
50INFO : (05-17 07:41:10) initial eligibles: [17150,17151,26974,17152,23458,17153,21519,21141,17259,17154,23038,26975,17260,17157,21430,21568,17158,17353,17262,21433,17159,17354,21518,17599,17160,17161,26121,17266,17595,21964,17162,17163,17269,17270,26122,17164,17165,17166,17167,23095,17168,17271,17272,17273,17170,17171,23545,19559,17355,21203,17274,17276,19349,17172,17277,17173,17174,17362,17175,17279,17176,17280,17177,17178,17179,17281,21798,17282,17180,17181,17182,17283,17184,17284,17185,17285,17286,17287,17288,17357,17186,17292,17187,17739,17294,17295,17296,17189,17190,17358,17297,17298,17336,17192,17364,17193,17335,17334,17333,17194,17195,17332,17602,17196,17331,26149,17330,17197,21677,17198,17384,17200,17201,17326,17210,17211,17212,17213,17214,17325,17324,17216,17323,17322,17217,21025,17321,17218,17219,17220,17221,17320,17222,22981,22972,17261,17319,17223,17225,17226,17227,17228,17318,17317,22888,17229,17315,17231,17314,17312,17232,17233,17234,21024,17311,17310,17208,17236,17237,17238,20023,17309,17239,17240,17241,17603,17243,17594,17306,17291,17244,17245,17246,17247,17248,17250,17305,17251,17386,17252,17253,20372,17601,23459,17303,17254,22569,22716,17255,22754,17302,17256,17257,17300,17299,17738]
51INFO : (05-17 07:41:10) collect_call_types
52 CallType Load (585.9ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`client_id` = 261 AND `call_types`.`active` = 1 ORDER BY `call_types`.`display_order` ASC
53INFO : (05-17 07:41:11) initial call types: [10157,10171,16025,10172,10158,10159,13659,10173,13736,10174,10160,10175,13735,10176,10161,10177,13026,10178,10162,10179,10163,13661,10180,10181,10164,13680,13681,10263,10264,10165,13673,10182,13674,10183,10166,10170,13660,15360,15397,10815,10972,10982,10983,10984,10985,10986,10987,10988,10989,10990,10991,10992,10993,10994,10995,10996,10997,10998,10999,11000,11001,11002,11003,11004,11005,11610,11611,11612,11613,11614,11615,11616,10817,13646,10814,11006,11007,11008,11009,11458,10167,12532,10168,10184,10169,13663,10832,10958,10959,10960,10961,10962,10963,10964,11622,11623,10186,11549,13656,10187,11550,10188,10189,10185,12319,13657,13658,10812,10973,10974,10975,10976,10977,10978,10979,10980,10981,11617,11618,11619,11620,11621,10813,10190,10195,13671,10198,10191,10196,10199,10192,13753,10200,13672,10193,16463,10829,10965,10966,10967,10968,10969,10970,10971,11626,11627,11628,11629,10816,10818,14257,10827,10828,10826,11630,11631,12195,10825,10824,11650,13668,10831,13670,10830,13669,10841,10842,13786,10954,10836,10837,10838,10839,10844,10845,13679,10843,11651,10847,13682,10846,12455,10848,14681,10194,14178,10835,10955,13998,10147,12474,10834,10833,11800,13737,12795,16019,16020,16021,16022,13729,11017,15353,11010,11011,15865,10819,11012,13667,11013,11014,11015,10957,11016,10849,15477,13922,14299,16041,11138,12581,11139,11168,11463,13675,13676,12477,12478,12480,12481,12482,12475,12476,11133,13677,11134,11137,13678,16467,11136,11135,11140,11141,12878,12879,10888,11563,10889,11523,10890,11564,10900,11321,11322,11323,11324,11325,11326,11327,11633,11634,11635,11636,10891,11207,11624,11625,10894,10895,14358,10896,10897,10898,10899,11332,11333,11334,11335,11565,11638,11639,11640,11641,10910,11955,10911,11799,10912,11956,10906,11204,16051,10913,11203,11205,11206,11642,11643,11644,10907,10908,10909,10919,10920,10921,10922,10923,10924,10925,10926,10901,10902,11222,11562,11223,10903,11198,11199,11649,10904,11201,11202,11646,11647,11648,10905,11200,13664,10914,11208,11209,11210,10915,10916,11224,11225,10917,11195,13665,10918,11196,11197,11645,10927,11211,11212,11219,11220,11221,13685,13730,13731,13732,13832]
54INFO : (05-17 07:41:11) collect_chain_links
55 ChainLink Load (331.6ms) SELECT `chain_links`.* FROM `chain_links` WHERE `chain_links`.`client_id` = 261
56 CallType Load (297.3ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`id` IN (10186, 10187, 10185, 10190, 10200, 10195, 10191, 10199, 10192, 10196, 10198, 10147, 10194, 10157, 10174, 10159, 10172, 10173, 10171, 10162, 10179, 10180, 10166, 10182, 10175, 10165, 10177, 10158, 10163, 10178, 10181, 10164, 10167, 10169, 10170, 10834, 10835, 10955, 10832, 10168, 10958, 10960, 10829, 10965, 10966, 10193, 10967, 10968, 10814, 11133, 11134, 10183, 11135, 11136, 11137, 10815, 10972, 10160, 10982, 10161, 10983, 10984, 10985, 10188, 10974, 10189, 10975, 10973, 11006, 10176, 10812, 15360, 11007, 16463)
57 CallType Load (810.5ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`id` IN (10187, 10186, 10185, 10200, 10190, 10195, 10199, 10191, 10192, 10196, 10198, 10147, 10194, 10174, 10157, 10172, 10159, 10171, 10173, 10179, 10162, 10180, 10182, 10166, 10175, 10165, 10158, 10177, 10178, 10163, 10181, 10164, 10167, 10169, 10170, 10834, 10835, 10955, 10832, 10958, 10168, 10960, 10829, 10965, 10966, 10967, 10193, 10968, 10814, 11133, 11134, 10183, 11135, 11136, 11137, 10815, 10972, 10982, 10160, 10983, 10161, 10984, 10985, 10974, 10188, 10975, 10189, 10973, 11006, 10176, 10812, 11007, 15360, 16463)
58INFO : (05-17 07:41:14) collect_linkages
59INFO : (05-17 07:41:14) collect_schedules
60 Schedule Load (334.9ms) SELECT `schedules`.* FROM `schedules` WHERE `schedules`.`client_id` = 261 AND (`schedules`.`schedule_on` BETWEEN '2018-06-01' AND '2018-09-30')
61INFO : (05-17 07:41:15) collect_slots
62INFO : (05-17 07:41:15) collect_approved_call_requests
63 Request Load (181.8ms) SELECT `requests`.* FROM `requests` INNER JOIN `staffs` ON `staffs`.`id` = `requests`.`staff_id` WHERE `requests`.`client_id` = 261 AND `requests`.`request_type` = 1 AND `requests`.`status` = 1 AND (`requests`.`schedule_on` BETWEEN '2018-06-01' AND '2018-09-30') ORDER BY requests.schedule_on ASC, staffs.request_priority ASC, requests.created_at ASC
64 Staff Load (139.2ms) SELECT `staffs`.* FROM `staffs` WHERE `staffs`.`id` IN (17210, 17151, 26121)
65INFO : (05-17 07:41:16) collect_approved_no_call_requests
66 Request Load (511.4ms) SELECT `requests`.* FROM `requests` WHERE `requests`.`client_id` = 261 AND `requests`.`request_type` = 0 AND `requests`.`status` = 1 AND (`requests`.`schedule_on` BETWEEN '2018-06-01' AND '2018-09-30') ORDER BY requests.schedule_on asc, requests.created_at asc
67INFO : (05-17 07:41:16) finished: Scheduler::Cache::Collector.collect_all
68INFO : (05-17 07:41:16) begin to process requests
69 CallType Load (283.1ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`calendar_schedule_id` = 1167 AND `call_types`.`active` = 1
70 (146.9ms) SELECT MAX(blocks.end_date) FROM `published_blocks` INNER JOIN `blocks` ON `blocks`.`id` = `published_blocks`.`block_id` WHERE `published_blocks`.`calendar_schedule_id` = 1167 AND ((published_blocks.assignment_ids IS NULL) AND (published_blocks.days_of_week_mask = 127))
71 Request Load (288.9ms) SELECT distinct requests.* FROM `requests` INNER JOIN `request_call_types` ON `request_call_types`.`request_id` = `requests`.`id` WHERE `requests`.`client_id` = 261 AND `requests`.`status` = 1 AND `requests`.`request_type` = 1 AND `request_call_types`.`call_type_id` IN (10147, 10157, 10158, 10159, 10160, 10161, 10162, 10163, 10164, 10165, 10166, 10167, 10168, 10169, 10170, 10171, 10172, 10173, 10174, 10175, 10176, 10177, 10178, 10179, 10180, 10181, 10182, 10183, 10184, 10185, 10186, 10187, 10188, 10189, 10190, 10191, 10192, 10193, 10194, 10195, 10196, 10198, 10199, 10200, 10263, 10264, 10825, 10827, 10831, 10841, 10844, 10847, 10848, 11133, 11134, 11135, 11136, 11137, 11138, 11139, 11140, 11141, 11168, 11463, 11549, 11550, 12319, 12474, 12475, 12476, 12477, 12478, 12480, 12481, 12482, 12532, 12581, 13026, 13656, 13657, 13658, 13659, 13660, 13661, 13663, 13670, 13671, 13672, 13673, 13674, 13675, 13676, 13677, 13678, 13680, 13681, 13682, 13735, 13736, 13753, 13922, 14178, 14299, 16025, 16041, 16463) AND (requests.schedule_on > '2018-05-28')
72 Schedule Load (161.0ms) SELECT `schedules`.* FROM `schedules` WHERE `schedules`.`schedule_on` = '2018-07-05' AND `schedules`.`staff_id` = 17210
73 RequestCallType Load (154.9ms) SELECT `request_call_types`.* FROM `request_call_types` WHERE `request_call_types`.`request_id` = 2325231 AND (request_call_types.second_call_type_id IS NULL)
74 Schedule Load (162.9ms) SELECT `schedules`.* FROM `schedules` WHERE `schedules`.`schedule_on` = '2018-07-18' AND `schedules`.`staff_id` = 17151
75 RequestCallType Load (138.8ms) SELECT `request_call_types`.* FROM `request_call_types` WHERE `request_call_types`.`request_id` = 2296769 AND (request_call_types.second_call_type_id IS NULL)
76 Schedule Load (497.2ms) SELECT `schedules`.* FROM `schedules` WHERE `schedules`.`schedule_on` = '2018-09-27' AND `schedules`.`staff_id` = 26121
77 RequestCallType Load (155.1ms) SELECT `request_call_types`.* FROM `request_call_types` WHERE `request_call_types`.`request_id` = 2361512 AND (request_call_types.second_call_type_id IS NULL)
78 SQL (1162.0ms) UPDATE `schedules` SET `schedules`.`populate_method` = 'auto_approved_request', `schedules`.`creator_id` = 27770 WHERE `schedules`.`client_id` = 261 AND 1=0
79INFO : (05-17 07:41:20) end of requests processing
80 Block Load (139.0ms) SELECT `blocks`.* FROM `blocks` INNER JOIN `block_schedules` ON `blocks`.`block_schedule_id` = `block_schedules`.`id` WHERE `block_schedules`.`id` = 356 AND (blocks.start_date <= '2018-09-02' AND blocks.end_date >= '2018-09-02') ORDER BY start_date asc, end_date asc LIMIT 1
81 Block Load (146.3ms) SELECT `blocks`.* FROM `blocks` WHERE `blocks`.`client_id` = 261 AND `blocks`.`block_schedule_id` = 356 AND (blocks.end_date < '2018-05-29') AND (blocks.id != 23591) ORDER BY start_date desc
82 Client Load (319.4ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
83 (141.8ms) SELECT `autopopulate_exclusions`.`schedule_on`, `autopopulate_exclusions`.`call_type_id` FROM `autopopulate_exclusions` WHERE `autopopulate_exclusions`.`client_id` = 261 AND `autopopulate_exclusions`.`schedule_on` IN ('2018-06-02', '2018-06-03', '2018-06-09', '2018-06-10', '2018-06-16', '2018-06-17', '2018-06-23', '2018-06-24', '2018-06-30', '2018-07-01', '2018-07-07', '2018-07-08', '2018-07-14', '2018-07-15', '2018-07-21', '2018-07-22', '2018-07-28', '2018-07-29', '2018-08-04', '2018-08-05', '2018-08-11', '2018-08-12', '2018-08-18', '2018-08-19', '2018-08-25', '2018-08-26', '2018-09-01', '2018-09-02')
84 (141.3ms) select
85 b.start_date,
86 b.end_date,
87 (pb.assignment_ids IS NULL) as fully_published,
88 concat(pbct.assignment_type, '#', pbct.assignment_id) as assignment_uid,
89 pbct.days_of_week_mask
90 from blocks as b
91 inner join published_blocks as pb
92 on pb.block_id = b.id
93 inner join published_block_call_types as pbct
94 on pbct.published_block_id = pb.id
95 where b.client_id = 261
96 and pb.calendar_schedule_id = 1167
97 and b.end_date BETWEEN '2018-06-02' AND '2018-09-02'
98
99INFO : (05-17 07:41:21) <-- clear: 0 - Scheduler::AutoPopulate::Queries::CreateTables
100INFO : (05-17 07:41:21) <-- clear: 1 - Scheduler::AutoPopulate::Queries::AutoPopulateSlots
101INFO : (05-17 07:41:21) <-- clear: 2 - Scheduler::AutoPopulate::Queries::Query003
102INFO : (05-17 07:41:21) <-- clear: 3 - Scheduler::AutoPopulate::Queries::Query005
103INFO : (05-17 07:41:21) <-- clear: 4 - Scheduler::AutoPopulate::Queries::Query01
104INFO : (05-17 07:41:21) <-- clear: 5 - Scheduler::AutoPopulate::Queries::Query012
105INFO : (05-17 07:41:21) <-- clear: 6 - Scheduler::AutoPopulate::Queries::QueryTargets
106INFO : (05-17 07:41:21) <-- clear: 7 - Scheduler::AutoPopulate::Queries::Query013
107INFO : (05-17 07:41:21) <-- clear: 8 - Scheduler::AutoPopulate::Queries::Query014
108INFO : (05-17 07:41:21) <-- clear: 9 - Scheduler::AutoPopulate::Queries::Query015
109INFO : (05-17 07:41:21) <-- clear: 10 - Scheduler::AutoPopulate::Queries::Query02
110INFO : (05-17 07:41:21) <-- clear: 11 - Scheduler::AutoPopulate::Queries::Query03
111INFO : (05-17 07:41:21) <-- clear: 12 - Scheduler::AutoPopulate::Queries::Query04
112INFO : (05-17 07:41:21) <-- clear: 13 - Scheduler::AutoPopulate::Queries::Query045
113INFO : (05-17 07:41:21) <-- clear: 14 - Scheduler::AutoPopulate::Queries::QueryA
114INFO : (05-17 07:41:21) <-- clear: 15 - Scheduler::AutoPopulate::Queries::QueryB
115INFO : (05-17 07:41:21) <-- clear: 16 - Scheduler::AutoPopulate::Queries::Query05
116INFO : (05-17 07:41:21) <-- clear: 17 - Scheduler::AutoPopulate::Queries::Query06
117INFO : (05-17 07:41:21) <-- clear: 18 - Scheduler::AutoPopulate::Queries::Query07
118INFO : (05-17 07:41:21) <-- clear: 19 - Scheduler::AutoPopulate::Queries::Query0702
119INFO : (05-17 07:41:21) <-- clear: 20 - Scheduler::AutoPopulate::Queries::Query0705
120INFO : (05-17 07:41:21) <-- clear: 21 - Scheduler::AutoPopulate::Queries::Query0706
121INFO : (05-17 07:41:21) <-- clear: 22 - Scheduler::AutoPopulate::Queries::Query0707
122INFO : (05-17 07:41:21) <-- clear: 23 - Scheduler::AutoPopulate::Queries::Query0708
123INFO : (05-17 07:41:21) <-- clear: 24 - Scheduler::AutoPopulate::Queries::Query0709
124INFO : (05-17 07:41:21) <-- clear: 25 - Scheduler::AutoPopulate::Queries::Query07_10_AL
125INFO : (05-17 07:41:21) <-- clear: 26 - Scheduler::AutoPopulate::Queries::Query07_10_AL_01
126INFO : (05-17 07:41:21) <-- clear: 27 - Scheduler::AutoPopulate::Queries::Query07_10_AL_02
127INFO : (05-17 07:41:21) <-- clear: 28 - Scheduler::AutoPopulate::Queries::Query07_10_AL_03
128INFO : (05-17 07:41:21) <-- clear: 29 - Scheduler::AutoPopulate::Queries::Query07_10_AL_04
129INFO : (05-17 07:41:21) <-- clear: 30 - Scheduler::AutoPopulate::Queries::Query08
130INFO : (05-17 07:41:21) <-- clear: 31 - Scheduler::AutoPopulate::Queries::Query085
131INFO : (05-17 07:41:22) <-- clear: 32 - Scheduler::AutoPopulate::Queries::Query09
132INFO : (05-17 07:41:22) <-- clear: 33 - Scheduler::AutoPopulate::Queries::Query092
133INFO : (05-17 07:41:22) <-- clear: 34 - Scheduler::AutoPopulate::Queries::Query093
134INFO : (05-17 07:41:22) <-- clear: 35 - Scheduler::AutoPopulate::Queries::Query095
135INFO : (05-17 07:41:22) <-- clear: 36 - Scheduler::AutoPopulate::Queries::Query097
136INFO : (05-17 07:41:22) <-- clear: 37 - Scheduler::AutoPopulate::Queries::Query098
137INFO : (05-17 07:41:22) <-- clear: 38 - Scheduler::AutoPopulate::Queries::Query09_09_AL_01
138INFO : (05-17 07:41:22) <-- clear: 39 - Scheduler::AutoPopulate::Queries::Query09_09_AL_02
139INFO : (05-17 07:41:22) <-- clear: 40 - Scheduler::AutoPopulate::Queries::Query09_09_AL_03
140INFO : (05-17 07:41:22) <-- clear: 41 - Scheduler::AutoPopulate::Queries::Query09_09_AL_04
141INFO : (05-17 07:41:22) <-- clear: 42 - Scheduler::AutoPopulate::Queries::Query09_12_Points
142INFO : (05-17 07:41:22) <-- clear: 43 - Scheduler::AutoPopulate::Queries::Query09_12_Hours
143INFO : (05-17 07:41:22) <-- clear: 44 - Scheduler::AutoPopulate::Queries::Query10
144INFO : (05-17 07:41:22) <-- clear: 45 - Scheduler::AutoPopulate::Queries::QueryScore02
145INFO : (05-17 07:41:22) <-- clear: 46 - Scheduler::AutoPopulate::Queries::QueryScore03
146INFO : (05-17 07:41:22) <-- clear: 47 - Scheduler::AutoPopulate::Queries::QueryScore04
147INFO : (05-17 07:41:22) <-- clear: 48 - Scheduler::AutoPopulate::Queries::Query11
148INFO : (05-17 07:41:22) <-- clear: 49 - Scheduler::AutoPopulate::Queries::DropTables
149 (140.3ms) DROP TABLE IF EXISTS buffer_annual_hour_targets_1621795380
150 (144.4ms) DROP TABLE IF EXISTS buffer_annual_point_targets_1621795380
151 (141.5ms) DROP TABLE IF EXISTS buffer_annual_targets_staff_totals_1621795380
152 (140.9ms) DROP TABLE IF EXISTS buffer_auto_populate_slots_1621795380
153 (138.0ms) DROP TABLE IF EXISTS buffer_call_days_targets_1621795380
154 (139.1ms) DROP TABLE IF EXISTS buffer_call_type_targets_1621795380
155 (148.4ms) DROP TABLE IF EXISTS buffer_cumulative_cd_targets_1621795380
156 (138.7ms) DROP TABLE IF EXISTS buffer_cumulative_ct_targets_1621795380
157 (138.1ms) DROP TABLE IF EXISTS buffer_cumulative_dow_targets_1621795380
158 (143.2ms) DROP TABLE IF EXISTS buffer_cumulative_hour_targets_1621795380
159 (426.2ms) DROP TABLE IF EXISTS buffer_cumulative_oa_targets_1621795380
160 (142.1ms) DROP TABLE IF EXISTS buffer_cumulative_point_targets_1621795380
161 (154.9ms) DROP TABLE IF EXISTS buffer_current_cd_targets_1621795380
162 (145.9ms) DROP TABLE IF EXISTS buffer_current_ct_targets_1621795380
163 (180.0ms) DROP TABLE IF EXISTS buffer_current_dow_targets_1621795380
164 (139.0ms) DROP TABLE IF EXISTS buffer_current_hour_targets_1621795380
165 (142.0ms) DROP TABLE IF EXISTS buffer_current_oa_targets_1621795380
166 (514.8ms) DROP TABLE IF EXISTS buffer_current_point_targets_1621795380
167 (140.8ms) DROP TABLE IF EXISTS buffer_day_of_week_targets_1621795380
168 (138.2ms) DROP TABLE IF EXISTS buffer_hour_targets_1621795380
169 (141.8ms) DROP TABLE IF EXISTS buffer_linkage_call_days_targets_1621795380
170 (139.4ms) DROP TABLE IF EXISTS buffer_linkage_call_type_targets_1621795380
171 (146.4ms) DROP TABLE IF EXISTS buffer_linkage_targets_1621795380
172 (489.4ms) DROP TABLE IF EXISTS buffer_linkage_hour_targets_1621795380
173 (140.0ms) DROP TABLE IF EXISTS buffer_linkage_point_targets_1621795380
174 (139.2ms) DROP TABLE IF EXISTS buffer_location_privileges_1621795380
175 (184.3ms) DROP TABLE IF EXISTS buffer_periods_1621795380
176 (141.9ms) DROP TABLE IF EXISTS buffer_point_targets_1621795380
177 (139.1ms) DROP TABLE IF EXISTS buffer_schedules_1621795380
178 (140.0ms) DROP TABLE IF EXISTS buffer_target_call_types_1621795380
179 (144.3ms) DROP TABLE IF EXISTS buffer_target_daily_points_1621795380
180 (139.3ms) DROP TABLE IF EXISTS buffer_target_dates_list_1621795380
181 (139.4ms) DROP TABLE IF EXISTS buffer_target_primary_availabilities_1621795380
182 (139.5ms) DROP TABLE IF EXISTS buffer_targets_1621795380
183 (154.6ms) DROP TABLE IF EXISTS buffer_tmp_targets_availabilities_1621795380
184 (139.8ms) DROP TABLE IF EXISTS buffer_tmp_targets_availabilities_exclusions_1621795380
185 (139.9ms) DROP TABLE IF EXISTS buffer_tmp_targets_client_totals_1621795380
186 (138.4ms) DROP TABLE IF EXISTS buffer_tmp_targets_scheduled_1621795380
187 (174.9ms) DROP TABLE IF EXISTS buffer_tmp_targets_staff_totals_1621795380
188 (139.2ms) DROP TABLE IF EXISTS buffer_assignment_limit_call_types_1621795380
189 (162.5ms) DROP TABLE IF EXISTS buffer_assignment_limit_periods_1621795380
190 (140.6ms) DROP TABLE IF EXISTS buffer_assignment_limit_staff_types_1621795380
191 (152.8ms) DROP TABLE IF EXISTS buffer_auto_populate_slots_1621795380
192 (140.1ms) DROP TABLE IF EXISTS buffer_call_type_assignments_1621795380
193 (140.6ms) DROP TABLE IF EXISTS buffer_combined_availabilities_1621795380
194 (138.7ms) DROP TABLE IF EXISTS buffer_combined_availability_linkages_1621795380
195 (141.4ms) DROP TABLE IF EXISTS buffer_counter_increments_1621795380
196 (140.1ms) DROP TABLE IF EXISTS buffer_linkage_assigned_days_1621795380
197 (139.6ms) DROP TABLE IF EXISTS buffer_linkage_assignments_count_consecutive_1621795380
198 (147.0ms) DROP TABLE IF EXISTS buffer_linkage_assignments_count_periods_1621795380
199 (139.3ms) DROP TABLE IF EXISTS buffer_linkage_assignments_count_rolling_1621795380
200 (140.2ms) DROP TABLE IF EXISTS buffer_linkage_assignments_count_weeks_1621795380
201 (139.8ms) DROP TABLE IF EXISTS buffer_linkage_call_type_assignments_1621795380
202 (140.4ms) DROP TABLE IF EXISTS buffer_linkage_dow_targets_1621795380
203 (140.3ms) DROP TABLE IF EXISTS buffer_linkage_patterns_1621795380
204 (138.8ms) DROP TABLE IF EXISTS buffer_linkages_1621795380
205 (141.9ms) DROP TABLE IF EXISTS buffer_location_privileges_1621795380
206 (179.6ms) DROP TABLE IF EXISTS buffer_min_distances_1621795380
207 (140.2ms) DROP TABLE IF EXISTS buffer_negative_relations_1621795380
208 (140.7ms) DROP TABLE IF EXISTS buffer_rule_calc_filters_1621795380
209 (139.7ms) DROP TABLE IF EXISTS buffer_rule_calc_schedules_1621795380
210 (145.4ms) DROP TABLE IF EXISTS buffer_rule_scores_1621795380
211 (142.2ms) DROP TABLE IF EXISTS buffer_rule_scores_with_corrections_1621795380
212 (139.8ms) DROP TABLE IF EXISTS buffer_schedule_linkages_1621795380
213 (140.4ms) DROP TABLE IF EXISTS buffer_schedules_linkage_patterns_1621795380
214 (173.3ms) DROP TABLE IF EXISTS buffer_specialization_daily_counts_1621795380
215 (139.2ms) DROP TABLE IF EXISTS buffer_staff_assigned_days_1621795380
216 (152.1ms) DROP TABLE IF EXISTS buffer_staff_assignments_count_periods_1621795380
217 (140.2ms) DROP TABLE IF EXISTS buffer_staff_assignments_count_rolling_1621795380
218 (160.7ms) DROP TABLE IF EXISTS buffer_staff_assignments_count_weeks_1621795380
219 (139.1ms) DROP TABLE IF EXISTS buffer_staff_assignments_count_consecutive_1621795380
220 (153.5ms) DROP TABLE IF EXISTS buffer_staff_daily_counts_1621795380
221 (140.3ms) DROP TABLE IF EXISTS buffer_staff_specializations_1621795380
222 (153.1ms) DROP TABLE IF EXISTS buffer_static_availabilities_1621795380
223 (144.2ms) DROP TABLE IF EXISTS buffer_target_assignments_1621795380
224 (158.5ms) delete from buffer_target_dates
225 where session_id = 1621795380
226
227INFO : (05-17 07:41:34) --> fill: 0 - Scheduler::AutoPopulate::Queries::CreateTables
228 (142.8ms) CREATE TABLE IF NOT EXISTS buffer_assignment_limit_call_types_1621795380 LIKE buffer_assignment_limit_call_types
229 (169.7ms) CREATE TABLE IF NOT EXISTS buffer_assignment_limit_periods_1621795380 LIKE buffer_assignment_limit_periods
230 (148.2ms) CREATE TABLE IF NOT EXISTS buffer_assignment_limit_staff_types_1621795380 LIKE buffer_assignment_limit_staff_types
231 (147.8ms) CREATE TABLE IF NOT EXISTS buffer_auto_populate_slots_1621795380 LIKE buffer_auto_populate_slots
232 (143.2ms) CREATE TABLE IF NOT EXISTS buffer_call_type_assignments_1621795380 LIKE buffer_call_type_assignments
233 (142.3ms) CREATE TABLE IF NOT EXISTS buffer_combined_availabilities_1621795380 LIKE buffer_combined_availabilities
234 (142.7ms) CREATE TABLE IF NOT EXISTS buffer_combined_availability_linkages_1621795380 LIKE buffer_combined_availability_linkages
235 (143.2ms) CREATE TABLE IF NOT EXISTS buffer_counter_increments_1621795380 LIKE buffer_counter_increments
236 (149.0ms) CREATE TABLE IF NOT EXISTS buffer_linkage_assigned_days_1621795380 LIKE buffer_linkage_assigned_days
237 (174.9ms) CREATE TABLE IF NOT EXISTS buffer_linkage_assignments_count_consecutive_1621795380 LIKE buffer_linkage_assignments_count_consecutive
238 (141.6ms) CREATE TABLE IF NOT EXISTS buffer_linkage_assignments_count_periods_1621795380 LIKE buffer_linkage_assignments_count_periods
239 (174.5ms) CREATE TABLE IF NOT EXISTS buffer_linkage_assignments_count_rolling_1621795380 LIKE buffer_linkage_assignments_count_rolling
240 (142.6ms) CREATE TABLE IF NOT EXISTS buffer_linkage_assignments_count_weeks_1621795380 LIKE buffer_linkage_assignments_count_weeks
241 (148.2ms) CREATE TABLE IF NOT EXISTS buffer_linkage_call_type_assignments_1621795380 LIKE buffer_linkage_call_type_assignments
242 (143.6ms) CREATE TABLE IF NOT EXISTS buffer_linkage_dow_targets_1621795380 LIKE buffer_linkage_dow_targets
243 (144.9ms) CREATE TABLE IF NOT EXISTS buffer_linkage_patterns_1621795380 LIKE buffer_linkage_patterns
244 (143.6ms) CREATE TABLE IF NOT EXISTS buffer_linkages_1621795380 LIKE buffer_linkages
245 (153.2ms) CREATE TABLE IF NOT EXISTS buffer_location_privileges_1621795380 LIKE buffer_location_privileges
246 (141.9ms) CREATE TABLE IF NOT EXISTS buffer_min_distances_1621795380 LIKE buffer_min_distances
247 (172.0ms) CREATE TABLE IF NOT EXISTS buffer_negative_relations_1621795380 LIKE buffer_negative_relations
248 (143.0ms) CREATE TABLE IF NOT EXISTS buffer_rule_calc_filters_1621795380 LIKE buffer_rule_calc_filters
249 (147.7ms) CREATE TABLE IF NOT EXISTS buffer_rule_calc_schedules_1621795380 LIKE buffer_rule_calc_schedules
250 (142.8ms) CREATE TABLE IF NOT EXISTS buffer_rule_scores_1621795380 LIKE buffer_rule_scores
251 (150.0ms) CREATE TABLE IF NOT EXISTS buffer_rule_scores_with_corrections_1621795380 LIKE buffer_rule_scores_with_corrections
252 (147.5ms) CREATE TABLE IF NOT EXISTS buffer_schedule_linkages_1621795380 LIKE buffer_schedule_linkages
253 (153.8ms) CREATE TABLE IF NOT EXISTS buffer_schedules_linkage_patterns_1621795380 LIKE buffer_schedules_linkage_patterns
254 (143.2ms) CREATE TABLE IF NOT EXISTS buffer_specialization_daily_counts_1621795380 LIKE buffer_specialization_daily_counts
255 (159.3ms) CREATE TABLE IF NOT EXISTS buffer_staff_assigned_days_1621795380 LIKE buffer_staff_assigned_days
256 (143.5ms) CREATE TABLE IF NOT EXISTS buffer_staff_assignments_count_periods_1621795380 LIKE buffer_staff_assignments_count_periods
257 (158.2ms) CREATE TABLE IF NOT EXISTS buffer_staff_assignments_count_rolling_1621795380 LIKE buffer_staff_assignments_count_rolling
258 (143.4ms) CREATE TABLE IF NOT EXISTS buffer_staff_assignments_count_weeks_1621795380 LIKE buffer_staff_assignments_count_weeks
259 (149.8ms) CREATE TABLE IF NOT EXISTS buffer_staff_assignments_count_consecutive_1621795380 LIKE buffer_staff_assignments_count_consecutive
260 (143.7ms) CREATE TABLE IF NOT EXISTS buffer_staff_daily_counts_1621795380 LIKE buffer_staff_daily_counts
261 (164.4ms) CREATE TABLE IF NOT EXISTS buffer_staff_specializations_1621795380 LIKE buffer_staff_specializations
262 (144.2ms) CREATE TABLE IF NOT EXISTS buffer_static_availabilities_1621795380 LIKE buffer_static_availabilities
263 (154.6ms) CREATE TABLE IF NOT EXISTS buffer_target_assignments_1621795380 LIKE buffer_target_assignments
264 (145.0ms) CREATE TABLE IF NOT EXISTS buffer_annual_hour_targets_1621795380 LIKE buffer_annual_hour_targets
265 (145.4ms) CREATE TABLE IF NOT EXISTS buffer_annual_point_targets_1621795380 LIKE buffer_annual_point_targets
266 (142.1ms) CREATE TABLE IF NOT EXISTS buffer_annual_targets_staff_totals_1621795380 LIKE buffer_annual_targets_staff_totals
267 (160.1ms) CREATE TABLE IF NOT EXISTS buffer_auto_populate_slots_1621795380 LIKE buffer_auto_populate_slots
268 (144.9ms) CREATE TABLE IF NOT EXISTS buffer_call_days_targets_1621795380 LIKE buffer_call_days_targets
269 (157.3ms) CREATE TABLE IF NOT EXISTS buffer_call_type_targets_1621795380 LIKE buffer_call_type_targets
270 (142.9ms) CREATE TABLE IF NOT EXISTS buffer_cumulative_cd_targets_1621795380 LIKE buffer_cumulative_cd_targets
271 (156.4ms) CREATE TABLE IF NOT EXISTS buffer_cumulative_ct_targets_1621795380 LIKE buffer_cumulative_ct_targets
272 (141.7ms) CREATE TABLE IF NOT EXISTS buffer_cumulative_dow_targets_1621795380 LIKE buffer_cumulative_dow_targets
273 (142.1ms) CREATE TABLE IF NOT EXISTS buffer_cumulative_hour_targets_1621795380 LIKE buffer_cumulative_hour_targets
274 (141.7ms) CREATE TABLE IF NOT EXISTS buffer_cumulative_oa_targets_1621795380 LIKE buffer_cumulative_oa_targets
275 (162.6ms) CREATE TABLE IF NOT EXISTS buffer_cumulative_point_targets_1621795380 LIKE buffer_cumulative_point_targets
276 (145.4ms) CREATE TABLE IF NOT EXISTS buffer_current_cd_targets_1621795380 LIKE buffer_current_cd_targets
277 (146.3ms) CREATE TABLE IF NOT EXISTS buffer_current_ct_targets_1621795380 LIKE buffer_current_ct_targets
278 (145.8ms) CREATE TABLE IF NOT EXISTS buffer_current_dow_targets_1621795380 LIKE buffer_current_dow_targets
279 (179.7ms) CREATE TABLE IF NOT EXISTS buffer_current_hour_targets_1621795380 LIKE buffer_current_hour_targets
280 (144.7ms) CREATE TABLE IF NOT EXISTS buffer_current_oa_targets_1621795380 LIKE buffer_current_oa_targets
281 (145.1ms) CREATE TABLE IF NOT EXISTS buffer_current_point_targets_1621795380 LIKE buffer_current_point_targets
282 (143.6ms) CREATE TABLE IF NOT EXISTS buffer_day_of_week_targets_1621795380 LIKE buffer_day_of_week_targets
283 (151.8ms) CREATE TABLE IF NOT EXISTS buffer_hour_targets_1621795380 LIKE buffer_hour_targets
284 (143.0ms) CREATE TABLE IF NOT EXISTS buffer_linkage_call_days_targets_1621795380 LIKE buffer_linkage_call_days_targets
285 (167.1ms) CREATE TABLE IF NOT EXISTS buffer_linkage_call_type_targets_1621795380 LIKE buffer_linkage_call_type_targets
286 (143.2ms) CREATE TABLE IF NOT EXISTS buffer_linkage_targets_1621795380 LIKE buffer_linkage_targets
287 (150.9ms) CREATE TABLE IF NOT EXISTS buffer_linkage_hour_targets_1621795380 LIKE buffer_linkage_hour_targets
288 (144.0ms) CREATE TABLE IF NOT EXISTS buffer_linkage_point_targets_1621795380 LIKE buffer_linkage_point_targets
289 (151.6ms) CREATE TABLE IF NOT EXISTS buffer_location_privileges_1621795380 LIKE buffer_location_privileges
290 (143.4ms) CREATE TABLE IF NOT EXISTS buffer_periods_1621795380 LIKE buffer_periods
291 (443.4ms) CREATE TABLE IF NOT EXISTS buffer_point_targets_1621795380 LIKE buffer_point_targets
292 (143.7ms) CREATE TABLE IF NOT EXISTS buffer_schedules_1621795380 LIKE buffer_schedules
293 (165.3ms) CREATE TABLE IF NOT EXISTS buffer_target_call_types_1621795380 LIKE buffer_target_call_types
294 (143.7ms) CREATE TABLE IF NOT EXISTS buffer_target_daily_points_1621795380 LIKE buffer_target_daily_points
295 (158.9ms) CREATE TABLE IF NOT EXISTS buffer_target_dates_list_1621795380 LIKE buffer_target_dates_list
296 (144.0ms) CREATE TABLE IF NOT EXISTS buffer_target_primary_availabilities_1621795380 LIKE buffer_target_primary_availabilities
297 (155.0ms) CREATE TABLE IF NOT EXISTS buffer_targets_1621795380 LIKE buffer_targets
298 (143.0ms) CREATE TABLE IF NOT EXISTS buffer_tmp_targets_availabilities_1621795380 LIKE buffer_tmp_targets_availabilities
299 (152.2ms) CREATE TABLE IF NOT EXISTS buffer_tmp_targets_availabilities_exclusions_1621795380 LIKE buffer_tmp_targets_availabilities_exclusions
300 (143.1ms) CREATE TABLE IF NOT EXISTS buffer_tmp_targets_client_totals_1621795380 LIKE buffer_tmp_targets_client_totals
301 (461.9ms) CREATE TABLE IF NOT EXISTS buffer_tmp_targets_scheduled_1621795380 LIKE buffer_tmp_targets_scheduled
302 (141.7ms) CREATE TABLE IF NOT EXISTS buffer_tmp_targets_staff_totals_1621795380 LIKE buffer_tmp_targets_staff_totals
303INFO : (05-17 07:41:45) --> fill: 1 - Scheduler::AutoPopulate::Queries::AutoPopulateSlots
304 (139.6ms) select
305 b.start_date,
306 b.end_date,
307 (pb.assignment_ids IS NULL) as fully_published,
308 concat(pbct.assignment_type, '#', pbct.assignment_id) as assignment_uid,
309 pbct.days_of_week_mask
310 from blocks as b
311 inner join published_blocks as pb
312 on pb.block_id = b.id
313 inner join published_block_call_types as pbct
314 on pbct.published_block_id = pb.id
315 where b.client_id = 261
316 and pb.calendar_schedule_id = 1167
317 and b.end_date BETWEEN '2018-06-02' AND '2018-09-02'
318
319 AutopopulateExclusion Load (1058.4ms) SELECT `autopopulate_exclusions`.* FROM `autopopulate_exclusions` WHERE `autopopulate_exclusions`.`client_id` = 261 AND `autopopulate_exclusions`.`schedule_on` IN ('2018-06-02', '2018-06-03', '2018-06-09', '2018-06-10', '2018-06-16', '2018-06-17', '2018-06-23', '2018-06-24', '2018-06-30', '2018-07-01', '2018-07-07', '2018-07-08', '2018-07-14', '2018-07-15', '2018-07-21', '2018-07-22', '2018-07-28', '2018-07-29', '2018-08-04', '2018-08-05', '2018-08-11', '2018-08-12', '2018-08-18', '2018-08-19', '2018-08-25', '2018-08-26', '2018-09-01', '2018-09-02')
320 (1720.7ms) INSERT INTO buffer_auto_populate_slots_1621795380
321 (schedule_on, day_of_week_mask, call_type_id, display_order, should_be_populated)
322 VALUES ('2018-06-02', 64, 10147, 197, 1), ('2018-06-02', 64, 10158, 4, 1), ('2018-06-02', 64, 10164, 25, 1), ('2018-06-02', 64, 10167, 81, 1), ('2018-06-02', 64, 10168, 83, 1), ('2018-06-02', 64, 10169, 85, 1), ('2018-06-02', 64, 10170, 36, 1), ('2018-06-02', 64, 10171, 1, 1), ('2018-06-02', 64, 10172, 3, 1), ('2018-06-02', 64, 10173, 7, 1), ('2018-06-02', 64, 10174, 9, 1), ('2018-06-02', 64, 10175, 11, 1), ('2018-06-02', 64, 10176, 13, 1), ('2018-06-02', 64, 10177, 16, 1), ('2018-06-02', 64, 10178, 18, 1), ('2018-06-02', 64, 10179, 20, 1), ('2018-06-02', 64, 10180, 23, 1), ('2018-06-02', 64, 10181, 24, 1), ('2018-06-02', 64, 10182, 32, 1), ('2018-06-02', 64, 10183, 34, 1), ('2018-06-02', 64, 10185, 107, 1), ('2018-06-02', 64, 10186, 99, 1), ('2018-06-02', 64, 10187, 102, 1), ('2018-06-02', 64, 10194, 192, 1), ('2018-06-02', 64, 10195, 128, 1), ('2018-06-02', 64, 10196, 132, 1), ('2018-06-02', 64, 10198, 130, 1), ('2018-06-02', 64, 10199, 133, 1), ('2018-06-02', 64, 10200, 137, 1), ('2018-06-02', 64, 13922, 226, 1), ('2018-06-02', 64, 14299, 227, 1), ('2018-06-02', 64, 16041, 228, 1), ('2018-06-02', 64, 16463, 141, 1), ('2018-06-03', 1, 10147, 197, 1), ('2018-06-03', 1, 10158, 4, 1), ('2018-06-03', 1, 10164, 25, 1), ('2018-06-03', 1, 10167, 81, 1), ('2018-06-03', 1, 10168, 83, 1), ('2018-06-03', 1, 10169, 85, 1), ('2018-06-03', 1, 10170, 36, 1), ('2018-06-03', 1, 10171, 1, 1), ('2018-06-03', 1, 10172, 3, 1), ('2018-06-03', 1, 10173, 7, 1), ('2018-06-03', 1, 10174, 9, 1), ('2018-06-03', 1, 10175, 11, 1), ('2018-06-03', 1, 10176, 13, 1), ('2018-06-03', 1, 10177, 16, 1), ('2018-06-03', 1, 10178, 18, 1), ('2018-06-03', 1, 10179, 20, 1), ('2018-06-03', 1, 10180, 23, 1), ('2018-06-03', 1, 10181, 24, 1), ('2018-06-03', 1, 10182, 32, 1), ('2018-06-03', 1, 10183, 34, 1), ('2018-06-03', 1, 10185, 107, 1), ('2018-06-03', 1, 10186, 99, 1), ('2018-06-03', 1, 10187, 102, 1), ('2018-06-03', 1, 10194, 192, 1), ('2018-06-03', 1, 10195, 128, 1), ('2018-06-03', 1, 10196, 132, 1), ('2018-06-03', 1, 10198, 130, 1), ('2018-06-03', 1, 10199, 133, 1), ('2018-06-03', 1, 10200, 137, 1), ('2018-06-03', 1, 13922, 226, 1), ('2018-06-03', 1, 14299, 227, 1), ('2018-06-03', 1, 16041, 228, 1), ('2018-06-03', 1, 16463, 141, 1), ('2018-06-09', 64, 10147, 197, 1), ('2018-06-09', 64, 10158, 4, 1), ('2018-06-09', 64, 10164, 25, 1), ('2018-06-09', 64, 10167, 81, 1), ('2018-06-09', 64, 10168, 83, 1), ('2018-06-09', 64, 10169, 85, 1), ('2018-06-09', 64, 10170, 36, 1), ('2018-06-09', 64, 10171, 1, 1), ('2018-06-09', 64, 10172, 3, 1), ('2018-06-09', 64, 10173, 7, 1), ('2018-06-09', 64, 10174, 9, 1), ('2018-06-09', 64, 10175, 11, 1), ('2018-06-09', 64, 10176, 13, 1), ('2018-06-09', 64, 10177, 16, 1), ('2018-06-09', 64, 10178, 18, 1), ('2018-06-09', 64, 10179, 20, 1), ('2018-06-09', 64, 10180, 23, 1), ('2018-06-09', 64, 10181, 24, 1), ('2018-06-09', 64, 10182, 32, 1), ('2018-06-09', 64, 10183, 34, 1), ('2018-06-09', 64, 10185, 107, 1), ('2018-06-09', 64, 10186, 99, 1), ('2018-06-09', 64, 10187, 102, 1), ('2018-06-09', 64, 10194, 192, 1), ('2018-06-09', 64, 10195, 128, 1), ('2018-06-09', 64, 10196, 132, 1), ('2018-06-09', 64, 10198, 130, 1), ('2018-06-09', 64, 10199, 133, 1), ('2018-06-09', 64, 10200, 137, 1), ('2018-06-09', 64, 13922, 226, 1), ('2018-06-09', 64, 14299, 227, 1), ('2018-06-09', 64, 16041, 228, 1), ('2018-06-09', 64, 16463, 141, 1), ('2018-06-10', 1, 10147, 197, 1), ('2018-06-10', 1, 10158, 4, 1), ('2018-06-10', 1, 10164, 25, 1), ('2018-06-10', 1, 10167, 81, 1), ('2018-06-10', 1, 10168, 83, 1), ('2018-06-10', 1, 10169, 85, 1), ('2018-06-10', 1, 10170, 36, 1), ('2018-06-10', 1, 10171, 1, 1), ('2018-06-10', 1, 10172, 3, 1), ('2018-06-10', 1, 10173, 7, 1), ('2018-06-10', 1, 10174, 9, 1), ('2018-06-10', 1, 10175, 11, 1), ('2018-06-10', 1, 10176, 13, 1), ('2018-06-10', 1, 10177, 16, 1), ('2018-06-10', 1, 10178, 18, 1), ('2018-06-10', 1, 10179, 20, 1), ('2018-06-10', 1, 10180, 23, 1), ('2018-06-10', 1, 10181, 24, 1), ('2018-06-10', 1, 10182, 32, 1), ('2018-06-10', 1, 10183, 34, 1), ('2018-06-10', 1, 10185, 107, 1), ('2018-06-10', 1, 10186, 99, 1), ('2018-06-10', 1, 10187, 102, 1), ('2018-06-10', 1, 10194, 192, 1), ('2018-06-10', 1, 10195, 128, 1), ('2018-06-10', 1, 10196, 132, 1), ('2018-06-10', 1, 10198, 130, 1), ('2018-06-10', 1, 10199, 133, 1), ('2018-06-10', 1, 10200, 137, 1), ('2018-06-10', 1, 13922, 226, 1), ('2018-06-10', 1, 14299, 227, 1), ('2018-06-10', 1, 16041, 228, 1), ('2018-06-10', 1, 16463, 141, 1), ('2018-06-16', 64, 10147, 197, 1), ('2018-06-16', 64, 10158, 4, 1), ('2018-06-16', 64, 10164, 25, 1), ('2018-06-16', 64, 10167, 81, 1), ('2018-06-16', 64, 10168, 83, 1), ('2018-06-16', 64, 10169, 85, 1), ('2018-06-16', 64, 10170, 36, 1), ('2018-06-16', 64, 10171, 1, 1), ('2018-06-16', 64, 10172, 3, 1), ('2018-06-16', 64, 10173, 7, 1), ('2018-06-16', 64, 10174, 9, 1), ('2018-06-16', 64, 10175, 11, 1), ('2018-06-16', 64, 10176, 13, 1), ('2018-06-16', 64, 10177, 16, 1), ('2018-06-16', 64, 10178, 18, 1), ('2018-06-16', 64, 10179, 20, 1), ('2018-06-16', 64, 10180, 23, 1), ('2018-06-16', 64, 10181, 24, 1), ('2018-06-16', 64, 10182, 32, 1), ('2018-06-16', 64, 10183, 34, 1), ('2018-06-16', 64, 10185, 107, 1), ('2018-06-16', 64, 10186, 99, 1), ('2018-06-16', 64, 10187, 102, 1), ('2018-06-16', 64, 10194, 192, 1), ('2018-06-16', 64, 10195, 128, 1), ('2018-06-16', 64, 10196, 132, 1), ('2018-06-16', 64, 10198, 130, 1), ('2018-06-16', 64, 10199, 133, 1), ('2018-06-16', 64, 10200, 137, 1), ('2018-06-16', 64, 13922, 226, 1), ('2018-06-16', 64, 14299, 227, 1), ('2018-06-16', 64, 16041, 228, 1), ('2018-06-16', 64, 16463, 141, 1), ('2018-06-17', 1, 10147, 197, 1), ('2018-06-17', 1, 10158, 4, 1), ('2018-06-17', 1, 10164, 25, 1), ('2018-06-17', 1, 10167, 81, 1), ('2018-06-17', 1, 10168, 83, 1), ('2018-06-17', 1, 10169, 85, 1), ('2018-06-17', 1, 10170, 36, 1), ('2018-06-17', 1, 10171, 1, 1), ('2018-06-17', 1, 10172, 3, 1), ('2018-06-17', 1, 10173, 7, 1), ('2018-06-17', 1, 10174, 9, 1), ('2018-06-17', 1, 10175, 11, 1), ('2018-06-17', 1, 10176, 13, 1), ('2018-06-17', 1, 10177, 16, 1), ('2018-06-17', 1, 10178, 18, 1), ('2018-06-17', 1, 10179, 20, 1), ('2018-06-17', 1, 10180, 23, 1), ('2018-06-17', 1, 10181, 24, 1), ('2018-06-17', 1, 10182, 32, 1), ('2018-06-17', 1, 10183, 34, 1), ('2018-06-17', 1, 10185, 107, 1), ('2018-06-17', 1, 10186, 99, 1), ('2018-06-17', 1, 10187, 102, 1), ('2018-06-17', 1, 10194, 192, 1), ('2018-06-17', 1, 10195, 128, 1), ('2018-06-17', 1, 10196, 132, 1), ('2018-06-17', 1, 10198, 130, 1), ('2018-06-17', 1, 10199, 133, 1), ('2018-06-17', 1, 10200, 137, 1), ('2018-06-17', 1, 13922, 226, 1), ('2018-06-17', 1, 14299, 227, 1), ('2018-06-17', 1, 16041, 228, 1), ('2018-06-17', 1, 16463, 141, 1), ('2018-06-23', 64, 10147, 197, 1), ('2018-06-23', 64, 10158, 4, 1), ('2018-06-23', 64, 10164, 25, 1), ('2018-06-23', 64, 10167, 81, 1), ('2018-06-23', 64, 10168, 83, 1), ('2018-06-23', 64, 10169, 85, 1), ('2018-06-23', 64, 10170, 36, 1), ('2018-06-23', 64, 10171, 1, 1), ('2018-06-23', 64, 10172, 3, 1), ('2018-06-23', 64, 10173, 7, 1), ('2018-06-23', 64, 10174, 9, 1), ('2018-06-23', 64, 10175, 11, 1), ('2018-06-23', 64, 10176, 13, 1), ('2018-06-23', 64, 10177, 16, 1), ('2018-06-23', 64, 10178, 18, 1), ('2018-06-23', 64, 10179, 20, 1), ('2018-06-23', 64, 10180, 23, 1), ('2018-06-23', 64, 10181, 24, 1), ('2018-06-23', 64, 10182, 32, 1), ('2018-06-23', 64, 10183, 34, 1), ('2018-06-23', 64, 10185, 107, 1), ('2018-06-23', 64, 10186, 99, 1), ('2018-06-23', 64, 10187, 102, 1), ('2018-06-23', 64, 10194, 192, 1), ('2018-06-23', 64, 10195, 128, 1), ('2018-06-23', 64, 10196, 132, 1), ('2018-06-23', 64, 10198, 130, 1), ('2018-06-23', 64, 10199, 133, 1), ('2018-06-23', 64, 10200, 137, 1), ('2018-06-23', 64, 13922, 226, 1), ('2018-06-23', 64, 14299, 227, 1), ('2018-06-23', 64, 16041, 228, 1), ('2018-06-23', 64, 16463, 141, 1), ('2018-06-24', 1, 10147, 197, 1), ('2018-06-24', 1, 10158, 4, 1), ('2018-06-24', 1, 10164, 25, 1), ('2018-06-24', 1, 10167, 81, 1), ('2018-06-24', 1, 10168, 83, 1), ('2018-06-24', 1, 10169, 85, 1), ('2018-06-24', 1, 10170, 36, 1), ('2018-06-24', 1, 10171, 1, 1), ('2018-06-24', 1, 10172, 3, 1), ('2018-06-24', 1, 10173, 7, 1), ('2018-06-24', 1, 10174, 9, 1), ('2018-06-24', 1, 10175, 11, 1), ('2018-06-24', 1, 10176, 13, 1), ('2018-06-24', 1, 10177, 16, 1), ('2018-06-24', 1, 10178, 18, 1), ('2018-06-24', 1, 10179, 20, 1), ('2018-06-24', 1, 10180, 23, 1), ('2018-06-24', 1, 10181, 24, 1), ('2018-06-24', 1, 10182, 32, 1), ('2018-06-24', 1, 10183, 34, 1), ('2018-06-24', 1, 10185, 107, 1), ('2018-06-24', 1, 10186, 99, 1), ('2018-06-24', 1, 10187, 102, 1), ('2018-06-24', 1, 10194, 192, 1), ('2018-06-24', 1, 10195, 128, 1), ('2018-06-24', 1, 10196, 132, 1), ('2018-06-24', 1, 10198, 130, 1), ('2018-06-24', 1, 10199, 133, 1), ('2018-06-24', 1, 10200, 137, 1), ('2018-06-24', 1, 13922, 226, 1), ('2018-06-24', 1, 14299, 227, 1), ('2018-06-24', 1, 16041, 228, 1), ('2018-06-24', 1, 16463, 141, 1), ('2018-06-30', 64, 10147, 197, 1), ('2018-06-30', 64, 10158, 4, 1), ('2018-06-30', 64, 10164, 25, 1), ('2018-06-30', 64, 10167, 81, 1), ('2018-06-30', 64, 10168, 83, 1), ('2018-06-30', 64, 10169, 85, 1), ('2018-06-30', 64, 10170, 36, 1), ('2018-06-30', 64, 10171, 1, 1), ('2018-06-30', 64, 10172, 3, 1), ('2018-06-30', 64, 10173, 7, 1), ('2018-06-30', 64, 10174, 9, 1), ('2018-06-30', 64, 10175, 11, 1), ('2018-06-30', 64, 10176, 13, 1), ('2018-06-30', 64, 10177, 16, 1), ('2018-06-30', 64, 10178, 18, 1), ('2018-06-30', 64, 10179, 20, 1), ('2018-06-30', 64, 10180, 23, 1), ('2018-06-30', 64, 10181, 24, 1), ('2018-06-30', 64, 10182, 32, 1), ('2018-06-30', 64, 10183, 34, 1), ('2018-06-30', 64, 10185, 107, 1), ('2018-06-30', 64, 10186, 99, 1), ('2018-06-30', 64, 10187, 102, 1), ('2018-06-30', 64, 10194, 192, 1), ('2018-06-30', 64, 10195, 128, 1), ('2018-06-30', 64, 10196, 132, 1), ('2018-06-30', 64, 10198, 130, 1), ('2018-06-30', 64, 10199, 133, 1), ('2018-06-30', 64, 10200, 137, 1), ('2018-06-30', 64, 13922, 226, 1), ('2018-06-30', 64, 14299, 227, 1), ('2018-06-30', 64, 16041, 228, 1), ('2018-06-30', 64, 16463, 141, 1), ('2018-07-01', 1, 10147, 197, 1), ('2018-07-01', 1, 10158, 4, 1), ('2018-07-01', 1, 10164, 25, 1), ('2018-07-01', 1, 10167, 81, 1), ('2018-07-01', 1, 10168, 83, 1), ('2018-07-01', 1, 10169, 85, 1), ('2018-07-01', 1, 10170, 36, 1), ('2018-07-01', 1, 10171, 1, 1), ('2018-07-01', 1, 10172, 3, 1), ('2018-07-01', 1, 10173, 7, 1), ('2018-07-01', 1, 10174, 9, 1), ('2018-07-01', 1, 10175, 11, 1), ('2018-07-01', 1, 10176, 13, 1), ('2018-07-01', 1, 10177, 16, 1), ('2018-07-01', 1, 10178, 18, 1), ('2018-07-01', 1, 10179, 20, 1), ('2018-07-01', 1, 10180, 23, 1), ('2018-07-01', 1, 10181, 24, 1), ('2018-07-01', 1, 10182, 32, 1), ('2018-07-01', 1, 10183, 34, 1), ('2018-07-01', 1, 10185, 107, 1), ('2018-07-01', 1, 10186, 99, 1), ('2018-07-01', 1, 10187, 102, 1), ('2018-07-01', 1, 10194, 192, 1), ('2018-07-01', 1, 10195, 128, 1), ('2018-07-01', 1, 10196, 132, 1), ('2018-07-01', 1, 10198, 130, 1), ('2018-07-01', 1, 10199, 133, 1), ('2018-07-01', 1, 10200, 137, 1), ('2018-07-01', 1, 13922, 226, 1), ('2018-07-01', 1, 14299, 227, 1), ('2018-07-01', 1, 16041, 228, 1), ('2018-07-01', 1, 16463, 141, 1), ('2018-07-07', 64, 10147, 197, 1), ('2018-07-07', 64, 10158, 4, 1), ('2018-07-07', 64, 10164, 25, 1), ('2018-07-07', 64, 10167, 81, 1), ('2018-07-07', 64, 10168, 83, 1), ('2018-07-07', 64, 10169, 85, 1), ('2018-07-07', 64, 10170, 36, 1), ('2018-07-07', 64, 10171, 1, 1), ('2018-07-07', 64, 10172, 3, 1), ('2018-07-07', 64, 10173, 7, 1), ('2018-07-07', 64, 10174, 9, 1), ('2018-07-07', 64, 10175, 11, 1), ('2018-07-07', 64, 10176, 13, 1), ('2018-07-07', 64, 10177, 16, 1), ('2018-07-07', 64, 10178, 18, 1), ('2018-07-07', 64, 10179, 20, 1), ('2018-07-07', 64, 10180, 23, 1), ('2018-07-07', 64, 10181, 24, 1), ('2018-07-07', 64, 10182, 32, 1), ('2018-07-07', 64, 10183, 34, 1), ('2018-07-07', 64, 10185, 107, 1), ('2018-07-07', 64, 10186, 99, 1), ('2018-07-07', 64, 10187, 102, 1), ('2018-07-07', 64, 10194, 192, 1), ('2018-07-07', 64, 10195, 128, 1), ('2018-07-07', 64, 10196, 132, 1), ('2018-07-07', 64, 10198, 130, 1), ('2018-07-07', 64, 10199, 133, 1), ('2018-07-07', 64, 10200, 137, 1), ('2018-07-07', 64, 13922, 226, 1), ('2018-07-07', 64, 14299, 227, 1), ('2018-07-07', 64, 16041, 228, 1), ('2018-07-07', 64, 16463, 141, 1), ('2018-07-08', 1, 10147, 197, 1), ('2018-07-08', 1, 10158, 4, 1), ('2018-07-08', 1, 10164, 25, 1), ('2018-07-08', 1, 10167, 81, 1), ('2018-07-08', 1, 10168, 83, 1), ('2018-07-08', 1, 10169, 85, 1), ('2018-07-08', 1, 10170, 36, 1), ('2018-07-08', 1, 10171, 1, 1), ('2018-07-08', 1, 10172, 3, 1), ('2018-07-08', 1, 10173, 7, 1), ('2018-07-08', 1, 10174, 9, 1), ('2018-07-08', 1, 10175, 11, 1), ('2018-07-08', 1, 10176, 13, 1), ('2018-07-08', 1, 10177, 16, 1), ('2018-07-08', 1, 10178, 18, 1), ('2018-07-08', 1, 10179, 20, 1), ('2018-07-08', 1, 10180, 23, 1), ('2018-07-08', 1, 10181, 24, 1), ('2018-07-08', 1, 10182, 32, 1), ('2018-07-08', 1, 10183, 34, 1), ('2018-07-08', 1, 10185, 107, 1), ('2018-07-08', 1, 10186, 99, 1), ('2018-07-08', 1, 10187, 102, 1), ('2018-07-08', 1, 10194, 192, 1), ('2018-07-08', 1, 10195, 128, 1), ('2018-07-08', 1, 10196, 132, 1), ('2018-07-08', 1, 10198, 130, 1), ('2018-07-08', 1, 10199, 133, 1), ('2018-07-08', 1, 10200, 137, 1), ('2018-07-08', 1, 13922, 226, 1), ('2018-07-08', 1, 14299, 227, 1), ('2018-07-08', 1, 16041, 228, 1), ('2018-07-08', 1, 16463, 141, 1), ('2018-07-14', 64, 10147, 197, 1), ('2018-07-14', 64, 10158, 4, 1), ('2018-07-14', 64, 10164, 25, 1), ('2018-07-14', 64, 10167, 81, 1), ('2018-07-14', 64, 10168, 83, 1), ('2018-07-14', 64, 10169, 85, 1), ('2018-07-14', 64, 10170, 36, 1), ('2018-07-14', 64, 10171, 1, 1), ('2018-07-14', 64, 10172, 3, 1), ('2018-07-14', 64, 10173, 7, 1), ('2018-07-14', 64, 10174, 9, 1), ('2018-07-14', 64, 10175, 11, 1), ('2018-07-14', 64, 10176, 13, 1), ('2018-07-14', 64, 10177, 16, 1), ('2018-07-14', 64, 10178, 18, 1), ('2018-07-14', 64, 10179, 20, 1), ('2018-07-14', 64, 10180, 23, 1), ('2018-07-14', 64, 10181, 24, 1), ('2018-07-14', 64, 10182, 32, 1), ('2018-07-14', 64, 10183, 34, 1), ('2018-07-14', 64, 10185, 107, 1), ('2018-07-14', 64, 10186, 99, 1), ('2018-07-14', 64, 10187, 102, 1), ('2018-07-14', 64, 10194, 192, 1), ('2018-07-14', 64, 10195, 128, 1), ('2018-07-14', 64, 10196, 132, 1), ('2018-07-14', 64, 10198, 130, 1), ('2018-07-14', 64, 10199, 133, 1), ('2018-07-14', 64, 10200, 137, 1), ('2018-07-14', 64, 13922, 226, 1), ('2018-07-14', 64, 14299, 227, 1), ('2018-07-14', 64, 16041, 228, 1), ('2018-07-14', 64, 16463, 141, 1), ('2018-07-15', 1, 10147, 197, 1), ('2018-07-15', 1, 10158, 4, 1), ('2018-07-15', 1, 10164, 25, 1), ('2018-07-15', 1, 10167, 81, 1), ('2018-07-15', 1, 10168, 83, 1), ('2018-07-15', 1, 10169, 85, 1), ('2018-07-15', 1, 10170, 36, 1), ('2018-07-15', 1, 10171, 1, 1), ('2018-07-15', 1, 10172, 3, 1), ('2018-07-15', 1, 10173, 7, 1), ('2018-07-15', 1, 10174, 9, 1), ('2018-07-15', 1, 10175, 11, 1), ('2018-07-15', 1, 10176, 13, 1), ('2018-07-15', 1, 10177, 16, 1), ('2018-07-15', 1, 10178, 18, 1), ('2018-07-15', 1, 10179, 20, 1), ('2018-07-15', 1, 10180, 23, 1), ('2018-07-15', 1, 10181, 24, 1), ('2018-07-15', 1, 10182, 32, 1), ('2018-07-15', 1, 10183, 34, 1), ('2018-07-15', 1, 10185, 107, 1), ('2018-07-15', 1, 10186, 99, 1), ('2018-07-15', 1, 10187, 102, 1), ('2018-07-15', 1, 10194, 192, 1), ('2018-07-15', 1, 10195, 128, 1), ('2018-07-15', 1, 10196, 132, 1), ('2018-07-15', 1, 10198, 130, 1), ('2018-07-15', 1, 10199, 133, 1), ('2018-07-15', 1, 10200, 137, 1), ('2018-07-15', 1, 13922, 226, 1), ('2018-07-15', 1, 14299, 227, 1), ('2018-07-15', 1, 16041, 228, 1), ('2018-07-15', 1, 16463, 141, 1), ('2018-07-21', 64, 10147, 197, 1), ('2018-07-21', 64, 10158, 4, 1), ('2018-07-21', 64, 10164, 25, 1), ('2018-07-21', 64, 10167, 81, 1), ('2018-07-21', 64, 10168, 83, 1), ('2018-07-21', 64, 10169, 85, 1), ('2018-07-21', 64, 10170, 36, 1), ('2018-07-21', 64, 10171, 1, 1), ('2018-07-21', 64, 10172, 3, 1), ('2018-07-21', 64, 10173, 7, 1), ('2018-07-21', 64, 10174, 9, 1), ('2018-07-21', 64, 10175, 11, 1), ('2018-07-21', 64, 10176, 13, 1), ('2018-07-21', 64, 10177, 16, 1), ('2018-07-21', 64, 10178, 18, 1), ('2018-07-21', 64, 10179, 20, 1), ('2018-07-21', 64, 10180, 23, 1), ('2018-07-21', 64, 10181, 24, 1), ('2018-07-21', 64, 10182, 32, 1), ('2018-07-21', 64, 10183, 34, 1), ('2018-07-21', 64, 10185, 107, 1), ('2018-07-21', 64, 10186, 99, 1), ('2018-07-21', 64, 10187, 102, 1), ('2018-07-21', 64, 10194, 192, 1), ('2018-07-21', 64, 10195, 128, 1), ('2018-07-21', 64, 10196, 132, 1), ('2018-07-21', 64, 10198, 130, 1), ('2018-07-21', 64, 10199, 133, 1), ('2018-07-21', 64, 10200, 137, 1), ('2018-07-21', 64, 13922, 226, 1), ('2018-07-21', 64, 14299, 227, 1), ('2018-07-21', 64, 16041, 228, 1), ('2018-07-21', 64, 16463, 141, 1), ('2018-07-22', 1, 10147, 197, 1), ('2018-07-22', 1, 10158, 4, 1), ('2018-07-22', 1, 10164, 25, 1), ('2018-07-22', 1, 10167, 81, 1), ('2018-07-22', 1, 10168, 83, 1), ('2018-07-22', 1, 10169, 85, 1), ('2018-07-22', 1, 10170, 36, 1), ('2018-07-22', 1, 10171, 1, 1), ('2018-07-22', 1, 10172, 3, 1), ('2018-07-22', 1, 10173, 7, 1), ('2018-07-22', 1, 10174, 9, 1), ('2018-07-22', 1, 10175, 11, 1), ('2018-07-22', 1, 10176, 13, 1), ('2018-07-22', 1, 10177, 16, 1), ('2018-07-22', 1, 10178, 18, 1), ('2018-07-22', 1, 10179, 20, 1), ('2018-07-22', 1, 10180, 23, 1), ('2018-07-22', 1, 10181, 24, 1), ('2018-07-22', 1, 10182, 32, 1), ('2018-07-22', 1, 10183, 34, 1), ('2018-07-22', 1, 10185, 107, 1), ('2018-07-22', 1, 10186, 99, 1), ('2018-07-22', 1, 10187, 102, 1), ('2018-07-22', 1, 10194, 192, 1), ('2018-07-22', 1, 10195, 128, 1), ('2018-07-22', 1, 10196, 132, 1), ('2018-07-22', 1, 10198, 130, 1), ('2018-07-22', 1, 10199, 133, 1), ('2018-07-22', 1, 10200, 137, 1), ('2018-07-22', 1, 13922, 226, 1), ('2018-07-22', 1, 14299, 227, 1), ('2018-07-22', 1, 16041, 228, 1), ('2018-07-22', 1, 16463, 141, 1), ('2018-07-28', 64, 10147, 197, 1), ('2018-07-28', 64, 10158, 4, 1), ('2018-07-28', 64, 10164, 25, 1), ('2018-07-28', 64, 10167, 81, 1), ('2018-07-28', 64, 10168, 83, 1), ('2018-07-28', 64, 10169, 85, 1), ('2018-07-28', 64, 10170, 36, 1), ('2018-07-28', 64, 10171, 1, 1), ('2018-07-28', 64, 10172, 3, 1), ('2018-07-28', 64, 10173, 7, 1), ('2018-07-28', 64, 10174, 9, 1), ('2018-07-28', 64, 10175, 11, 1), ('2018-07-28', 64, 10176, 13, 1), ('2018-07-28', 64, 10177, 16, 1), ('2018-07-28', 64, 10178, 18, 1), ('2018-07-28', 64, 10179, 20, 1), ('2018-07-28', 64, 10180, 23, 1), ('2018-07-28', 64, 10181, 24, 1), ('2018-07-28', 64, 10182, 32, 1), ('2018-07-28', 64, 10183, 34, 1), ('2018-07-28', 64, 10185, 107, 1), ('2018-07-28', 64, 10186, 99, 1), ('2018-07-28', 64, 10187, 102, 1), ('2018-07-28', 64, 10194, 192, 1), ('2018-07-28', 64, 10195, 128, 1), ('2018-07-28', 64, 10196, 132, 1), ('2018-07-28', 64, 10198, 130, 1), ('2018-07-28', 64, 10199, 133, 1), ('2018-07-28', 64, 10200, 137, 1), ('2018-07-28', 64, 13922, 226, 1), ('2018-07-28', 64, 14299, 227, 1), ('2018-07-28', 64, 16041, 228, 1), ('2018-07-28', 64, 16463, 141, 1), ('2018-07-29', 1, 10147, 197, 1), ('2018-07-29', 1, 10158, 4, 1), ('2018-07-29', 1, 10164, 25, 1), ('2018-07-29', 1, 10167, 81, 1), ('2018-07-29', 1, 10168, 83, 1), ('2018-07-29', 1, 10169, 85, 1), ('2018-07-29', 1, 10170, 36, 1), ('2018-07-29', 1, 10171, 1, 1), ('2018-07-29', 1, 10172, 3, 1), ('2018-07-29', 1, 10173, 7, 1), ('2018-07-29', 1, 10174, 9, 1), ('2018-07-29', 1, 10175, 11, 1), ('2018-07-29', 1, 10176, 13, 1), ('2018-07-29', 1, 10177, 16, 1), ('2018-07-29', 1, 10178, 18, 1), ('2018-07-29', 1, 10179, 20, 1), ('2018-07-29', 1, 10180, 23, 1), ('2018-07-29', 1, 10181, 24, 1), ('2018-07-29', 1, 10182, 32, 1), ('2018-07-29', 1, 10183, 34, 1), ('2018-07-29', 1, 10185, 107, 1), ('2018-07-29', 1, 10186, 99, 1), ('2018-07-29', 1, 10187, 102, 1), ('2018-07-29', 1, 10194, 192, 1), ('2018-07-29', 1, 10195, 128, 1), ('2018-07-29', 1, 10196, 132, 1), ('2018-07-29', 1, 10198, 130, 1), ('2018-07-29', 1, 10199, 133, 1), ('2018-07-29', 1, 10200, 137, 1), ('2018-07-29', 1, 13922, 226, 1), ('2018-07-29', 1, 14299, 227, 1), ('2018-07-29', 1, 16041, 228, 1), ('2018-07-29', 1, 16463, 141, 1), ('2018-08-04', 64, 10147, 197, 1), ('2018-08-04', 64, 10158, 4, 1), ('2018-08-04', 64, 10164, 25, 1), ('2018-08-04', 64, 10167, 81, 1), ('2018-08-04', 64, 10168, 83, 1), ('2018-08-04', 64, 10169, 85, 1), ('2018-08-04', 64, 10170, 36, 1), ('2018-08-04', 64, 10171, 1, 1), ('2018-08-04', 64, 10172, 3, 1), ('2018-08-04', 64, 10173, 7, 1), ('2018-08-04', 64, 10174, 9, 1), ('2018-08-04', 64, 10175, 11, 1), ('2018-08-04', 64, 10176, 13, 1), ('2018-08-04', 64, 10177, 16, 1), ('2018-08-04', 64, 10178, 18, 1), ('2018-08-04', 64, 10179, 20, 1), ('2018-08-04', 64, 10180, 23, 1), ('2018-08-04', 64, 10181, 24, 1), ('2018-08-04', 64, 10182, 32, 1), ('2018-08-04', 64, 10183, 34, 1), ('2018-08-04', 64, 10185, 107, 1), ('2018-08-04', 64, 10186, 99, 1), ('2018-08-04', 64, 10187, 102, 1), ('2018-08-04', 64, 10194, 192, 1), ('2018-08-04', 64, 10195, 128, 1), ('2018-08-04', 64, 10196, 132, 1), ('2018-08-04', 64, 10198, 130, 1), ('2018-08-04', 64, 10199, 133, 1), ('2018-08-04', 64, 10200, 137, 1), ('2018-08-04', 64, 13922, 226, 1), ('2018-08-04', 64, 14299, 227, 1), ('2018-08-04', 64, 16041, 228, 1), ('2018-08-04', 64, 16463, 141, 1), ('2018-08-05', 1, 10147, 197, 1), ('2018-08-05', 1, 10158, 4, 1), ('2018-08-05', 1, 10164, 25, 1), ('2018-08-05', 1, 10167, 81, 1), ('2018-08-05', 1, 10168, 83, 1), ('2018-08-05', 1, 10169, 85, 1), ('2018-08-05', 1, 10170, 36, 1), ('2018-08-05', 1, 10171, 1, 1), ('2018-08-05', 1, 10172, 3, 1), ('2018-08-05', 1, 10173, 7, 1), ('2018-08-05', 1, 10174, 9, 1), ('2018-08-05', 1, 10175, 11, 1), ('2018-08-05', 1, 10176, 13, 1), ('2018-08-05', 1, 10177, 16, 1), ('2018-08-05', 1, 10178, 18, 1), ('2018-08-05', 1, 10179, 20, 1), ('2018-08-05', 1, 10180, 23, 1), ('2018-08-05', 1, 10181, 24, 1), ('2018-08-05', 1, 10182, 32, 1), ('2018-08-05', 1, 10183, 34, 1), ('2018-08-05', 1, 10185, 107, 1), ('2018-08-05', 1, 10186, 99, 1), ('2018-08-05', 1, 10187, 102, 1), ('2018-08-05', 1, 10194, 192, 1), ('2018-08-05', 1, 10195, 128, 1), ('2018-08-05', 1, 10196, 132, 1), ('2018-08-05', 1, 10198, 130, 1), ('2018-08-05', 1, 10199, 133, 1), ('2018-08-05', 1, 10200, 137, 1), ('2018-08-05', 1, 13922, 226, 1), ('2018-08-05', 1, 14299, 227, 1), ('2018-08-05', 1, 16041, 228, 1), ('2018-08-05', 1, 16463, 141, 1), ('2018-08-11', 64, 10147, 197, 1), ('2018-08-11', 64, 10158, 4, 1), ('2018-08-11', 64, 10164, 25, 1), ('2018-08-11', 64, 10167, 81, 1), ('2018-08-11', 64, 10168, 83, 1), ('2018-08-11', 64, 10169, 85, 1), ('2018-08-11', 64, 10170, 36, 1), ('2018-08-11', 64, 10171, 1, 1), ('2018-08-11', 64, 10172, 3, 1), ('2018-08-11', 64, 10173, 7, 1), ('2018-08-11', 64, 10174, 9, 1), ('2018-08-11', 64, 10175, 11, 1), ('2018-08-11', 64, 10176, 13, 1), ('2018-08-11', 64, 10177, 16, 1), ('2018-08-11', 64, 10178, 18, 1), ('2018-08-11', 64, 10179, 20, 1), ('2018-08-11', 64, 10180, 23, 1), ('2018-08-11', 64, 10181, 24, 1), ('2018-08-11', 64, 10182, 32, 1), ('2018-08-11', 64, 10183, 34, 1), ('2018-08-11', 64, 10185, 107, 1), ('2018-08-11', 64, 10186, 99, 1), ('2018-08-11', 64, 10187, 102, 1), ('2018-08-11', 64, 10194, 192, 1), ('2018-08-11', 64, 10195, 128, 1), ('2018-08-11', 64, 10196, 132, 1), ('2018-08-11', 64, 10198, 130, 1), ('2018-08-11', 64, 10199, 133, 1), ('2018-08-11', 64, 10200, 137, 1), ('2018-08-11', 64, 13922, 226, 1), ('2018-08-11', 64, 14299, 227, 1), ('2018-08-11', 64, 16041, 228, 1), ('2018-08-11', 64, 16463, 141, 1), ('2018-08-12', 1, 10147, 197, 1), ('2018-08-12', 1, 10158, 4, 1), ('2018-08-12', 1, 10164, 25, 1), ('2018-08-12', 1, 10167, 81, 1), ('2018-08-12', 1, 10168, 83, 1), ('2018-08-12', 1, 10169, 85, 1), ('2018-08-12', 1, 10170, 36, 1), ('2018-08-12', 1, 10171, 1, 1), ('2018-08-12', 1, 10172, 3, 1), ('2018-08-12', 1, 10173, 7, 1), ('2018-08-12', 1, 10174, 9, 1), ('2018-08-12', 1, 10175, 11, 1), ('2018-08-12', 1, 10176, 13, 1), ('2018-08-12', 1, 10177, 16, 1), ('2018-08-12', 1, 10178, 18, 1), ('2018-08-12', 1, 10179, 20, 1), ('2018-08-12', 1, 10180, 23, 1), ('2018-08-12', 1, 10181, 24, 1), ('2018-08-12', 1, 10182, 32, 1), ('2018-08-12', 1, 10183, 34, 1), ('2018-08-12', 1, 10185, 107, 1), ('2018-08-12', 1, 10186, 99, 1), ('2018-08-12', 1, 10187, 102, 1), ('2018-08-12', 1, 10194, 192, 1), ('2018-08-12', 1, 10195, 128, 1), ('2018-08-12', 1, 10196, 132, 1), ('2018-08-12', 1, 10198, 130, 1), ('2018-08-12', 1, 10199, 133, 1), ('2018-08-12', 1, 10200, 137, 1), ('2018-08-12', 1, 13922, 226, 1), ('2018-08-12', 1, 14299, 227, 1), ('2018-08-12', 1, 16041, 228, 1), ('2018-08-12', 1, 16463, 141, 1), ('2018-08-18', 64, 10147, 197, 1), ('2018-08-18', 64, 10158, 4, 1), ('2018-08-18', 64, 10164, 25, 1), ('2018-08-18', 64, 10167, 81, 1), ('2018-08-18', 64, 10168, 83, 1), ('2018-08-18', 64, 10169, 85, 1), ('2018-08-18', 64, 10170, 36, 1), ('2018-08-18', 64, 10171, 1, 1), ('2018-08-18', 64, 10172, 3, 1), ('2018-08-18', 64, 10173, 7, 1), ('2018-08-18', 64, 10174, 9, 1), ('2018-08-18', 64, 10175, 11, 1), ('2018-08-18', 64, 10176, 13, 1), ('2018-08-18', 64, 10177, 16, 1), ('2018-08-18', 64, 10178, 18, 1), ('2018-08-18', 64, 10179, 20, 1), ('2018-08-18', 64, 10180, 23, 1), ('2018-08-18', 64, 10181, 24, 1), ('2018-08-18', 64, 10182, 32, 1), ('2018-08-18', 64, 10183, 34, 1), ('2018-08-18', 64, 10185, 107, 1), ('2018-08-18', 64, 10186, 99, 1), ('2018-08-18', 64, 10187, 102, 1), ('2018-08-18', 64, 10194, 192, 1), ('2018-08-18', 64, 10195, 128, 1), ('2018-08-18', 64, 10196, 132, 1), ('2018-08-18', 64, 10198, 130, 1), ('2018-08-18', 64, 10199, 133, 1), ('2018-08-18', 64, 10200, 137, 1), ('2018-08-18', 64, 13922, 226, 1), ('2018-08-18', 64, 14299, 227, 1), ('2018-08-18', 64, 16041, 228, 1), ('2018-08-18', 64, 16463, 141, 1), ('2018-08-19', 1, 10147, 197, 1), ('2018-08-19', 1, 10158, 4, 1), ('2018-08-19', 1, 10164, 25, 1), ('2018-08-19', 1, 10167, 81, 1), ('2018-08-19', 1, 10168, 83, 1), ('2018-08-19', 1, 10169, 85, 1), ('2018-08-19', 1, 10170, 36, 1), ('2018-08-19', 1, 10171, 1, 1), ('2018-08-19', 1, 10172, 3, 1), ('2018-08-19', 1, 10173, 7, 1), ('2018-08-19', 1, 10174, 9, 1), ('2018-08-19', 1, 10175, 11, 1), ('2018-08-19', 1, 10176, 13, 1), ('2018-08-19', 1, 10177, 16, 1), ('2018-08-19', 1, 10178, 18, 1), ('2018-08-19', 1, 10179, 20, 1), ('2018-08-19', 1, 10180, 23, 1), ('2018-08-19', 1, 10181, 24, 1), ('2018-08-19', 1, 10182, 32, 1), ('2018-08-19', 1, 10183, 34, 1), ('2018-08-19', 1, 10185, 107, 1), ('2018-08-19', 1, 10186, 99, 1), ('2018-08-19', 1, 10187, 102, 1), ('2018-08-19', 1, 10194, 192, 1), ('2018-08-19', 1, 10195, 128, 1), ('2018-08-19', 1, 10196, 132, 1), ('2018-08-19', 1, 10198, 130, 1), ('2018-08-19', 1, 10199, 133, 1), ('2018-08-19', 1, 10200, 137, 1), ('2018-08-19', 1, 13922, 226, 1), ('2018-08-19', 1, 14299, 227, 1), ('2018-08-19', 1, 16041, 228, 1), ('2018-08-19', 1, 16463, 141, 1), ('2018-08-25', 64, 10147, 197, 1), ('2018-08-25', 64, 10158, 4, 1), ('2018-08-25', 64, 10164, 25, 1), ('2018-08-25', 64, 10167, 81, 1), ('2018-08-25', 64, 10168, 83, 1), ('2018-08-25', 64, 10169, 85, 1), ('2018-08-25', 64, 10170, 36, 1), ('2018-08-25', 64, 10171, 1, 1), ('2018-08-25', 64, 10172, 3, 1), ('2018-08-25', 64, 10173, 7, 1), ('2018-08-25', 64, 10174, 9, 1), ('2018-08-25', 64, 10175, 11, 1), ('2018-08-25', 64, 10176, 13, 1), ('2018-08-25', 64, 10177, 16, 1), ('2018-08-25', 64, 10178, 18, 1), ('2018-08-25', 64, 10179, 20, 1), ('2018-08-25', 64, 10180, 23, 1), ('2018-08-25', 64, 10181, 24, 1), ('2018-08-25', 64, 10182, 32, 1), ('2018-08-25', 64, 10183, 34, 1), ('2018-08-25', 64, 10185, 107, 1), ('2018-08-25', 64, 10186, 99, 1), ('2018-08-25', 64, 10187, 102, 1), ('2018-08-25', 64, 10194, 192, 1), ('2018-08-25', 64, 10195, 128, 1), ('2018-08-25', 64, 10196, 132, 1), ('2018-08-25', 64, 10198, 130, 1), ('2018-08-25', 64, 10199, 133, 1), ('2018-08-25', 64, 10200, 137, 1), ('2018-08-25', 64, 13922, 226, 1), ('2018-08-25', 64, 14299, 227, 1), ('2018-08-25', 64, 16041, 228, 1), ('2018-08-25', 64, 16463, 141, 1), ('2018-08-26', 1, 10147, 197, 1), ('2018-08-26', 1, 10158, 4, 1), ('2018-08-26', 1, 10164, 25, 1), ('2018-08-26', 1, 10167, 81, 1), ('2018-08-26', 1, 10168, 83, 1), ('2018-08-26', 1, 10169, 85, 1), ('2018-08-26', 1, 10170, 36, 1), ('2018-08-26', 1, 10171, 1, 1), ('2018-08-26', 1, 10172, 3, 1), ('2018-08-26', 1, 10173, 7, 1), ('2018-08-26', 1, 10174, 9, 1), ('2018-08-26', 1, 10175, 11, 1), ('2018-08-26', 1, 10176, 13, 1), ('2018-08-26', 1, 10177, 16, 1), ('2018-08-26', 1, 10178, 18, 1), ('2018-08-26', 1, 10179, 20, 1), ('2018-08-26', 1, 10180, 23, 1), ('2018-08-26', 1, 10181, 24, 1), ('2018-08-26', 1, 10182, 32, 1), ('2018-08-26', 1, 10183, 34, 1), ('2018-08-26', 1, 10185, 107, 1), ('2018-08-26', 1, 10186, 99, 1), ('2018-08-26', 1, 10187, 102, 1), ('2018-08-26', 1, 10194, 192, 1), ('2018-08-26', 1, 10195, 128, 1), ('2018-08-26', 1, 10196, 132, 1), ('2018-08-26', 1, 10198, 130, 1), ('2018-08-26', 1, 10199, 133, 1), ('2018-08-26', 1, 10200, 137, 1), ('2018-08-26', 1, 13922, 226, 1), ('2018-08-26', 1, 14299, 227, 1), ('2018-08-26', 1, 16041, 228, 1), ('2018-08-26', 1, 16463, 141, 1), ('2018-09-01', 64, 10147, 197, 1), ('2018-09-01', 64, 10158, 4, 1), ('2018-09-01', 64, 10164, 25, 1), ('2018-09-01', 64, 10167, 81, 1), ('2018-09-01', 64, 10168, 83, 1), ('2018-09-01', 64, 10169, 85, 1), ('2018-09-01', 64, 10170, 36, 1), ('2018-09-01', 64, 10171, 1, 1), ('2018-09-01', 64, 10172, 3, 1), ('2018-09-01', 64, 10173, 7, 1), ('2018-09-01', 64, 10174, 9, 1), ('2018-09-01', 64, 10175, 11, 1), ('2018-09-01', 64, 10176, 13, 1), ('2018-09-01', 64, 10177, 16, 1), ('2018-09-01', 64, 10178, 18, 1), ('2018-09-01', 64, 10179, 20, 1), ('2018-09-01', 64, 10180, 23, 1), ('2018-09-01', 64, 10181, 24, 1), ('2018-09-01', 64, 10182, 32, 1), ('2018-09-01', 64, 10183, 34, 1), ('2018-09-01', 64, 10185, 107, 1), ('2018-09-01', 64, 10186, 99, 1), ('2018-09-01', 64, 10187, 102, 1), ('2018-09-01', 64, 10194, 192, 1), ('2018-09-01', 64, 10195, 128, 1), ('2018-09-01', 64, 10196, 132, 1), ('2018-09-01', 64, 10198, 130, 1), ('2018-09-01', 64, 10199, 133, 1), ('2018-09-01', 64, 10200, 137, 1), ('2018-09-01', 64, 13922, 226, 1), ('2018-09-01', 64, 14299, 227, 1), ('2018-09-01', 64, 16041, 228, 1), ('2018-09-01', 64, 16463, 141, 1), ('2018-09-02', 1, 10147, 197, 1), ('2018-09-02', 1, 10158, 4, 1), ('2018-09-02', 1, 10164, 25, 1), ('2018-09-02', 1, 10167, 81, 1), ('2018-09-02', 1, 10168, 83, 1), ('2018-09-02', 1, 10169, 85, 1), ('2018-09-02', 1, 10170, 36, 1), ('2018-09-02', 1, 10171, 1, 1), ('2018-09-02', 1, 10172, 3, 1), ('2018-09-02', 1, 10173, 7, 1), ('2018-09-02', 1, 10174, 9, 1), ('2018-09-02', 1, 10175, 11, 1), ('2018-09-02', 1, 10176, 13, 1), ('2018-09-02', 1, 10177, 16, 1), ('2018-09-02', 1, 10178, 18, 1), ('2018-09-02', 1, 10179, 20, 1), ('2018-09-02', 1, 10180, 23, 1), ('2018-09-02', 1, 10181, 24, 1), ('2018-09-02', 1, 10182, 32, 1), ('2018-09-02', 1, 10183, 34, 1), ('2018-09-02', 1, 10185, 107, 1), ('2018-09-02', 1, 10186, 99, 1), ('2018-09-02', 1, 10187, 102, 1), ('2018-09-02', 1, 10194, 192, 1), ('2018-09-02', 1, 10195, 128, 1), ('2018-09-02', 1, 10196, 132, 1), ('2018-09-02', 1, 10198, 130, 1), ('2018-09-02', 1, 10199, 133, 1), ('2018-09-02', 1, 10200, 137, 1), ('2018-09-02', 1, 13922, 226, 1), ('2018-09-02', 1, 14299, 227, 1), ('2018-09-02', 1, 16041, 228, 1), ('2018-09-02', 1, 16463, 141, 1)
323
324INFO : (05-17 07:41:48) --> fill: 2 - Scheduler::AutoPopulate::Queries::Query003
325 (195.1ms) insert into buffer_auto_populate_slots_1621795380/* client_id */ (
326 schedule_on,
327 day_of_week_mask,
328 call_type_id,
329 display_order,
330 should_be_populated
331 )
332 select distinct
333 date_add(
334 auto_populate_slots.schedule_on,
335 interval soft_linkages.offset day
336 ) as schedule_on,
337 (1 << (
338 dayofweek(
339 date_add(
340 auto_populate_slots.schedule_on,
341 interval soft_linkages.offset day
342 )
343 ) - 1
344 )
345 ) as day_of_week_mask,
346 soft_linkages.linked_call_type_id as call_type_id,
347 call_types.display_order,
348 0 as should_be_populated
349 from
350 buffer_auto_populate_slots_1621795380/* client_id */ as auto_populate_slots
351 inner join soft_linkages
352 on auto_populate_slots.call_type_id = soft_linkages.call_type_id
353 and auto_populate_slots.day_of_week_mask = soft_linkages.day_of_week_mask
354 left join buffer_auto_populate_slots_1621795380/* client_id */ as auto_populate_slots_2
355 on date_add(
356 auto_populate_slots.schedule_on,
357 interval soft_linkages.offset day
358 ) = auto_populate_slots_2.schedule_on
359 and soft_linkages.linked_call_type_id = auto_populate_slots_2.call_type_id
360 inner join call_types
361 on soft_linkages.linked_call_type_id = call_types.id
362 where auto_populate_slots_2.id is null
363 order by null
364
365INFO : (05-17 07:41:49) --> fill: 3 - Scheduler::AutoPopulate::Queries::Query005
366 (169.6ms) insert into buffer_auto_populate_slots_1621795380 (
367 schedule_on,
368 day_of_week_mask,
369 call_type_id,
370 display_order,
371 should_be_populated
372 )
373 select distinct
374 date_add(
375 auto_populate_slots.schedule_on,
376 interval linkage_relations.distance_in_days day
377 ) as schedule_on,
378 (1 << (
379 dayofweek(
380 date_add(
381 auto_populate_slots.schedule_on,
382 interval linkage_relations.distance_in_days day
383 )
384 ) - 1
385 )
386 ) as day_of_week_mask,
387 linkage_relations.linked_call_type_id as call_type_id,
388 call_types.display_order,
389 0 as should_be_populated
390 from
391 buffer_auto_populate_slots_1621795380 as auto_populate_slots
392 inner join linkage_relations
393 on auto_populate_slots.call_type_id = linkage_relations.call_type_id
394 and auto_populate_slots.day_of_week_mask = linkage_relations.day_of_week_mask
395 left join buffer_auto_populate_slots_1621795380 as auto_populate_slots_2
396 on date_add(
397 auto_populate_slots.schedule_on,
398 interval linkage_relations.distance_in_days day
399 ) = auto_populate_slots_2.schedule_on
400 and linkage_relations.linked_call_type_id = auto_populate_slots_2.call_type_id
401 inner join call_types
402 on linkage_relations.linked_call_type_id = call_types.id
403 where auto_populate_slots_2.id is null
404 order by null
405
406INFO : (05-17 07:41:49) --> fill: 4 - Scheduler::AutoPopulate::Queries::Query01
407 (193.9ms) insert into linkage_relations (
408 client_id,
409 call_type_id,
410 day_of_week_mask,
411 linked_call_type_id,
412 distance_in_days,
413 linkage_template_id
414 )
415 select distinct
416 261 /* client_id */ as client_id,
417 aps.call_type_id,
418 aps.day_of_week_mask,
419 aps.call_type_id as linked_call_type_id,
420 0 as distance_in_days,
421 coalesce(
422 lr.linkage_template_id,
423 @linkage_template_max := @linkage_template_max + 1
424 ) as linkage_template_id
425 from
426 buffer_auto_populate_slots_1621795380/* client_id */ as aps
427 inner join (
428 select @linkage_template_max := count(distinct linkage_template_id) - 1
429 from linkage_relations
430 where client_id = 261 /* client_id */
431 order by null
432 ) as lt
433 on 1 = 1
434 left join linkage_relations as lr use index (ix_linkage_relations_composite1)
435 on aps.call_type_id = lr.call_type_id
436 and aps.day_of_week_mask = lr.day_of_week_mask
437 left join linkage_relations as lr_2 use index (ix_linkage_relations_composite1)
438 on aps.call_type_id = lr_2.call_type_id
439 and aps.day_of_week_mask = lr_2.day_of_week_mask
440 and aps.call_type_id = lr_2.linked_call_type_id
441 and lr_2.distance_in_days = 0
442 where lr_2.id is null
443 order by null
444
445 (258.7ms) insert into buffer_schedules_1621795380 (
446 call_type_id,
447 staff_id,
448 schedule_on,
449 day_of_week_mask,
450 is_weekend,
451 display_order,
452 week_number,
453 should_be_evaluated,
454 should_be_populated,
455 linkage_instance_id
456 )
457 select
458 call_type_id,
459 staff_id,
460 schedule_on,
461 day_of_week_mask,
462 is_weekend,
463 display_order,
464 week_number,
465 max(should_be_evaluated) as should_be_evaluated,
466 max(should_be_populated) as should_be_populated,
467 min(linkage_instance_id) as linkage_instance_id
468 from (
469 select
470 auto_populate_slots_2.call_type_id,
471 schedules.staff_id,
472 auto_populate_slots_2.schedule_on,
473 auto_populate_slots_2.day_of_week_mask,
474 case
475 when (auto_populate_slots_2.day_of_week_mask & 62 > 0) then 0
476 else 1
477 end as is_weekend,
478 auto_populate_slots_2.display_order,
479 yearweek(
480 auto_populate_slots_2.schedule_on,
481 case
482 when (clients.start_of_week = 0) then 2
483 else 7
484 end
485 ) as week_number,
486 case
487 when (schedules.staff_id is null) then 1
488 else 0
489 end as should_be_evaluated,
490 (
491 case
492 when (
493 auto_populate_slots_2.should_be_populated = 1
494 and schedules.staff_id is null
495 ) then 1
496 else 0
497 end
498 ) as should_be_populated,
499 (
500 linkage_relations.linkage_template_id * 1000000 +
501 yearweek(
502 auto_populate_slots.schedule_on,
503 case
504 when (clients.start_of_week = 0) then 2
505 else 7
506 end
507 )
508 ) as linkage_instance_id
509 from
510 buffer_auto_populate_slots_1621795380 as auto_populate_slots
511 inner join clients
512 on clients.id = 261 /* client_id */
513 inner join linkage_relations
514 on auto_populate_slots.call_type_id = linkage_relations.call_type_id
515 and auto_populate_slots.day_of_week_mask = linkage_relations.day_of_week_mask
516 inner join buffer_auto_populate_slots_1621795380 as auto_populate_slots_2
517 on date_add(
518 auto_populate_slots.schedule_on,
519 interval linkage_relations.distance_in_days day
520 ) = auto_populate_slots_2.schedule_on
521 and linkage_relations.linked_call_type_id = auto_populate_slots_2.call_type_id
522 left join schedules
523 on auto_populate_slots_2.call_type_id = schedules.call_type_id
524 and auto_populate_slots_2.schedule_on = schedules.schedule_on
525 order by null
526 ) as t1
527 group by
528 call_type_id,
529 staff_id,
530 schedule_on,
531 day_of_week_mask,
532 display_order,
533 week_number
534 order by null
535
536INFO : (05-17 07:41:49) --> fill: 5 - Scheduler::AutoPopulate::Queries::Query012
537 (274.0ms) update
538 buffer_schedules_1621795380 as sc
539 inner join call_types as ct
540 on sc.call_type_id = ct.id
541 inner join calendar_schedules as cs
542 on ct.calendar_schedule_id = cs.id
543 inner join blocks as b
544 on cs.block_schedule_id = b.block_schedule_id
545 and sc.schedule_on between b.start_date and b.end_date
546 set
547 sc.calendar_schedule_id = cs.id,
548 sc.block_id = b.id
549
550 BlockSchedule Load (139.5ms) SELECT `block_schedules`.* FROM `block_schedules` WHERE `block_schedules`.`id` = 356 LIMIT 1
551 (148.2ms) insert into buffer_periods_1621795380 (
552 calendar_schedule_id,
553 block_schedule_id,
554 period_offset,
555 start_block_display_order,
556 end_block_display_order,
557 start_date,
558 end_date,
559 should_be_populated,
560 should_be_evaluated
561 )
562 select
563 sc.calendar_schedule_id,
564 b.block_schedule_id,
565 b.display_order as period_offset,
566 b.display_order as start_block_display_order,
567 b.display_order as end_block_display_order,
568 b.start_date as start_date,
569 b.end_date as end_date,
570 sc.should_be_populated as should_be_populated,
571 sc.should_be_evaluated as should_be_evaluated
572 from (
573 select
574 sc.block_id,
575 sc.calendar_schedule_id,
576 max(ps.should_be_populated) as should_be_populated,
577 1 as should_be_evaluated
578 from
579 buffer_schedules_1621795380 as sc
580 inner join buffer_auto_populate_slots_1621795380 as ps
581 on sc.schedule_on = ps.schedule_on
582 and sc.call_type_id = ps.call_type_id
583 where sc.linkage_instance_id >= 0
584 group by
585 sc.calendar_schedule_id,
586 sc.block_id
587 order by null
588 ) as sc
589 inner join blocks as b
590 on sc.block_id = b.id
591 order by null
592
593 (150.2ms) update
594 buffer_schedules_1621795380 as sc
595 inner join buffer_periods_1621795380 as p
596 on sc.calendar_schedule_id = p.calendar_schedule_id
597 and sc.schedule_on between p.start_date and p.end_date
598 set sc.period_offset = p.period_offset
599
600INFO : (05-17 07:41:50) --> fill: 6 - Scheduler::AutoPopulate::Queries::QueryTargets
601 (147.4ms) delete from buffer_target_dates
602 where session_id = 1621795380
603
604 (138.4ms) select distinct calendar_schedule_id
605 from buffer_periods_1621795380
606
607 (443.9ms) insert into buffer_target_dates (
608 session_id,
609 client_id,
610 calendar_schedule_id,
611 block_id,
612 start_date,
613 end_date,
614 block_display_order,
615 period_offset,
616 build_cd_targets,
617 cd_targets_source,
618 copy_cd_targets,
619 build_ct_targets,
620 ct_targets_source,
621 copy_ct_targets,
622 build_oa_targets,
623 oa_targets_source,
624 copy_oa_targets,
625 build_dow_targets,
626 dow_targets_source,
627 copy_dow_targets,
628 build_point_targets,
629 point_targets_source,
630 copy_point_targets,
631 build_hour_targets,
632 hour_targets_source,
633 copy_hour_targets,
634 is_published,
635 affected_by_populate,
636 within_cumulative_period
637 )
638 select
639 1621795380 as session_id,
640 261 as client_id,
641 t1.calendar_schedule_id,
642 t1.block_id,
643 t1.start_date,
644 t1.end_date,
645 t1.block_display_order,
646 t1.period_offset,
647 case
648 when (
649 (
650 FALSE
651 )
652 and t1.is_published = 0
653 and coalesce(pb.has_unpublished, 1) = 1
654 and cd_u.block_id is null
655 ) then 1
656 else 0
657 end as build_cd_targets,
658 case
659 when (
660 t1.is_published = 1
661 or (
662 pb.has_published = 1
663 and pb.has_unpublished = 0
664 )
665 ) then 'published'
666 when (
667 coalesce(pb.has_published, 0) = 0
668 and coalesce(pb.has_unpublished, 1) = 1
669 and cd_u.block_id is not null
670 ) then 'unpublished'
671 when (
672 pb.has_published = 1
673 and pb.has_unpublished = 1
674 and cd_u.block_id is not null
675 ) then 'both'
676 else ''
677 end as cd_targets_source,
678 0 as copy_cd_targets,
679 case
680 when (
681 (
682 FALSE
683 )
684 and t1.is_published = 0
685 and coalesce(pb.has_unpublished, 1) = 1
686 and ct_u.block_id is null
687 ) then 1
688 else 0
689 end as build_ct_targets,
690 case
691 when (
692 t1.is_published = 1
693 or (
694 pb.has_published = 1
695 and pb.has_unpublished = 0
696 )
697 ) then 'published'
698 when (
699 coalesce(pb.has_published, 0) = 0
700 and coalesce(pb.has_unpublished, 1) = 1
701 and ct_u.block_id is not null
702 ) then 'unpublished'
703 when (
704 pb.has_published = 1
705 and pb.has_unpublished = 1
706 and ct_u.block_id is not null
707 ) then 'both'
708 else ''
709 end as ct_targets_source,
710 0 as copy_ct_targets,
711 case
712 when (
713 (
714 FALSE
715 )
716 and t1.is_published = 0
717 and oa_u.block_id is null
718 ) then 1
719 else 0
720 end as build_oa_targets,
721 case
722 when (t1.is_published = 1) then 'published'
723 when (oa_u.block_id is not null) then 'unpublished'
724 else ''
725 end as oa_targets_source,
726 0 as copy_oa_targets,
727 case
728 when (
729 (
730 FALSE
731 )
732 and t1.is_published = 0
733 and dow_u.block_id is null
734 ) then 1
735 else 0
736 end as build_dow_targets,
737 case
738 when (t1.is_published = 1) then 'published'
739 when (dow_u.block_id is not null) then 'unpublished'
740 else ''
741 end as dow_targets_source,
742 0 as copy_dow_targets,
743 case
744 when (
745 (
746 t1.affected_by_populate = 1 /* CurrentPointTargetsRule, CurrentWeeklyPointTargetsRule */ OR t1.within_cumulative_period = 1 /* CumulativePointTargetsRule, CumulativeWeeklyPointTargetsRule */
747 )
748 and t1.is_published = 0
749 and p_u.block_id is null
750 ) then 1
751 else 0
752 end as build_point_targets,
753 case
754 when (t1.is_published = 1) then 'published'
755 when (p_u.block_id is not null) then 'unpublished'
756 else ''
757 end as point_targets_source,
758 0 as copy_point_targets,
759 case
760 when (
761 (
762 FALSE
763 )
764 and t1.is_published = 0
765 and h_u.block_id is null
766 ) then 1
767 else 0
768 end as build_hour_targets,
769 case
770 when (t1.is_published = 1) then 'published'
771 when (h_u.block_id is not null) then 'unpublished'
772 else ''
773 end as hour_targets_source,
774 0 as copy_hour_targets,
775 t1.is_published,
776 t1.affected_by_populate,
777 t1.within_cumulative_period
778 from (
779 select
780 t1.calendar_schedule_id,
781 b.id as block_id,
782 b.start_date,
783 b.end_date,
784 t1.block_display_order,
785 p.period_offset,
786 case
787 when (t1.block_display_order between t1.start_block_display_order and t1.end_block_display_order) then 1
788 else 0
789 end as affected_by_populate,
790 case
791 when (t1.block_display_order between (t1.timeframe_ending - (3 - 1)) and t1.timeframe_ending) then 1
792 else 0
793 end as within_cumulative_period,
794 case
795 when (pb.id is not null) then 1
796 else 0
797 end as is_published
798 from (
799 select
800 t1.calendar_schedule_id,
801 t1.block_schedule_id,
802 (t1.end_block_display_order - ns.item_number) as block_display_order,
803 t1.start_block_display_order,
804 t1.end_block_display_order,
805 t1.timeframe_ending
806 from (
807 select
808 calendar_schedule_id,
809 block_schedule_id,
810 min(start_block_display_order) as start_block_display_order,
811 max(end_block_display_order) as end_block_display_order,
812 max(
813 case
814 when (should_be_populated = 1) then end_block_display_order
815 else null
816 end
817 ) as timeframe_ending
818 from
819 buffer_periods_1621795380
820 group by
821 calendar_schedule_id,
822 block_schedule_id
823 order by null
824 ) as t1
825 inner join numeric_sequence as ns
826 on ns.item_number < greatest(
827 t1.end_block_display_order - t1.start_block_display_order + 1,
828 t1.end_block_display_order - t1.timeframe_ending + 3 /* cumulative targets period */
829 )
830 and t1.end_block_display_order >= ns.item_number
831 where
832 (t1.end_block_display_order - ns.item_number) /* block display order */
833 between t1.start_block_display_order and t1.end_block_display_order
834 or (t1.end_block_display_order - ns.item_number)
835 between (t1.timeframe_ending - (3 /* cumulative targets period */ - 1)) and t1.timeframe_ending
836 order by null
837 ) as t1
838 inner join blocks as b
839 on t1.block_schedule_id = b.block_schedule_id
840 and t1.block_display_order = b.display_order
841 left join buffer_periods_1621795380 as p
842 on t1.calendar_schedule_id = p.calendar_schedule_id
843 and t1.block_display_order between p.start_block_display_order and p.end_block_display_order
844 left join published_blocks as pb
845 on b.id = pb.block_id
846 and t1.calendar_schedule_id = pb.calendar_schedule_id
847 and pb.assignment_ids is null
848 and pb.days_of_week_mask = 127
849 order by null
850 ) as t1
851 left join (
852 select
853 calendar_schedule_id,
854 block_id
855 from
856 unpublished_call_days_targets
857 where
858 calendar_schedule_id in (1167,1219) /* list of calendar schedules */
859 group by
860 calendar_schedule_id,
861 block_id
862 order by null
863 ) as cd_u
864 on t1.calendar_schedule_id = cd_u.calendar_schedule_id
865 and t1.block_id = cd_u.block_id
866 left join (
867 select
868 calendar_schedule_id,
869 block_id
870 from
871 unpublished_call_type_targets
872 where
873 calendar_schedule_id in (1167,1219) /* list of calendar schedules */
874 group by
875 calendar_schedule_id,
876 block_id
877 order by null
878 ) as ct_u
879 on t1.calendar_schedule_id = ct_u.calendar_schedule_id
880 and t1.block_id = ct_u.block_id
881 left join (
882 select
883 calendar_schedule_id,
884 block_id
885 from
886 unpublished_targets
887 where
888 calendar_schedule_id in (1167,1219) /* list of calendar schedules */
889 group by
890 calendar_schedule_id,
891 block_id
892 order by null
893 ) as oa_u
894 on t1.calendar_schedule_id = oa_u.calendar_schedule_id
895 and t1.block_id = oa_u.block_id
896 left join (
897 select
898 calendar_schedule_id,
899 block_id
900 from
901 unpublished_day_of_week_targets
902 where
903 calendar_schedule_id in (1167,1219) /* list of calendar schedules */
904 group by
905 calendar_schedule_id,
906 block_id
907 order by null
908 ) as dow_u
909 on t1.calendar_schedule_id = dow_u.calendar_schedule_id
910 and t1.block_id = dow_u.block_id
911 left join (
912 select
913 calendar_schedule_id,
914 block_id
915 from
916 unpublished_point_targets
917 where
918 calendar_schedule_id in (1167,1219) /* list of calendar schedules */
919 group by
920 calendar_schedule_id,
921 block_id
922 order by null
923 ) as p_u
924 on t1.calendar_schedule_id = p_u.calendar_schedule_id
925 and t1.block_id = p_u.block_id
926 left join (
927 select
928 calendar_schedule_id,
929 block_id
930 from
931 unpublished_hour_targets
932 where
933 calendar_schedule_id in (1167,1219) /* list of calendar schedules */
934 group by
935 calendar_schedule_id,
936 block_id
937 order by null
938 ) as h_u
939 on t1.calendar_schedule_id = h_u.calendar_schedule_id
940 and t1.block_id = h_u.block_id
941 left join (
942 select
943 pb.calendar_schedule_id,
944 pb.block_id,
945 max(
946 case
947 when (coalesce(pbct.days_of_week_mask, 0) > 0) then 1
948 else 0
949 end
950 ) as has_published,
951 max(
952 case
953 when (coalesce(pbct.days_of_week_mask, 0) < 127) then 1
954 else 0
955 end
956 ) as has_unpublished
957 from (
958 select
959 case
960 when (tg.id is null) then ct.id
961 else tg.id
962 end as assignment_id,
963 case
964 when (tg.id is null) then 'CallType'
965 else 'TargetGroup'
966 end as assignment_type,
967 ct.calendar_schedule_id
968 from
969 call_types as ct
970 left join target_group_calls as tgc
971 on ct.id = tgc.call_type_id
972 left join target_groups as tg
973 on tgc.target_group_id = tg.id
974 and tg.active = 1
975 where
976 ct.calendar_schedule_id in (1167,1219) /* list of calendar schedules */
977 and ct.active = 1
978 and ct.included_in_targets > 0
979 and ct.days_of_week_mask > 0
980 group by
981 assignment_id,
982 assignment_type,
983 ct.calendar_schedule_id
984 order by null
985 ) as ct
986 inner join published_blocks as pb
987 on ct.calendar_schedule_id = pb.calendar_schedule_id
988 and (
989 pb.assignment_ids is not null
990 or pb.days_of_week_mask < 127
991 )
992 left join published_block_call_types as pbct
993 on pb.id = pbct.published_block_id
994 and ct.assignment_id = pbct.assignment_id
995 and ct.assignment_type = pbct.assignment_type
996 group by
997 pb.calendar_schedule_id,
998 pb.block_id
999 order by null
1000 ) as pb
1001 on t1.calendar_schedule_id = pb.calendar_schedule_id
1002 and t1.block_id = pb.block_id
1003 order by null
1004
1005Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0101 - 731.847ms
1006 (138.6ms) select
1007 max(build_cd_targets) as build_cd_targets,
1008 max(build_ct_targets) as build_ct_targets,
1009 max(build_oa_targets) as build_oa_targets,
1010 max(build_dow_targets) as build_dow_targets,
1011 max(build_point_targets) as build_point_targets,
1012 max(build_hour_targets) as build_hour_targets
1013 from buffer_target_dates
1014 where session_id = 1621795380
1015 order by null
1016
1017Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets02 - 139.119ms
1018 (142.0ms) select distinct calendar_schedule_id
1019 from buffer_target_dates
1020 where
1021 session_id = 1621795380
1022 and build_point_targets = 1
1023
1024 (140.3ms) truncate table buffer_target_call_types_1621795380
1025
1026 (142.6ms) insert into buffer_target_call_types_1621795380 (
1027 id,
1028 target_group_id,
1029 assignment_id,
1030 assignment_type,
1031 calendar_schedule_id,
1032 days_of_week_mask,
1033 hours,
1034 points_days_of_week_mask,
1035 included_in_targets,
1036 all_staff_types,
1037 location_id
1038 )
1039 select
1040 ct.id,
1041 0 as target_group_id,
1042 ct.id as assignment_id,
1043 'CallType' as assignment_type,
1044 ct.calendar_schedule_id,
1045 ct.days_of_week_mask,
1046 null as hours,
1047 sum((1 << dp.day)) as points_days_of_week_mask,
1048 ct.included_in_targets,
1049 ct.all_staff_types,
1050 ct.location_id
1051 from
1052 call_types as ct
1053 inner join assignment_annotations as aa
1054 on ct.id = aa.assignmentable_id
1055 and aa.assignmentable_type = 'CallType'
1056 and aa.annotation_id = 0 /* annotation = "None" */
1057 and aa.applicable = 1
1058 inner join assignment_annotation_daily_points as dp
1059 on aa.id = dp.assignment_annotation_id
1060 and dp.point != 0
1061 and dp.day <= 6
1062 where
1063 ct.calendar_schedule_id in (1167)
1064 and ct.active = 1
1065 and ct.days_of_week_mask > 0
1066 group by
1067 ct.id,
1068 ct.calendar_schedule_id,
1069 ct.days_of_week_mask,
1070 ct.included_in_targets,
1071 ct.all_staff_types,
1072 ct.location_id
1073 order by null
1074
1075 (142.5ms) insert into buffer_target_daily_points_1621795380 (
1076 call_type_id,
1077 day,
1078 point
1079 )
1080 select
1081 ct.id as call_type_id,
1082 dp.day,
1083 dp.point
1084 from buffer_target_call_types_1621795380 as ct
1085 inner join assignment_annotations as aa
1086 on ct.id = aa.assignmentable_id
1087 and aa.assignmentable_type = 'CallType'
1088 and aa.annotation_id = 0 /* annotation = "None" */
1089 and aa.applicable = 1
1090 inner join assignment_annotation_daily_points as dp
1091 on aa.id = dp.assignment_annotation_id
1092 where dp.point != 0
1093 order by null
1094
1095Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets02Points - 568.889ms
1096 (424.6ms) select id from buffer_target_call_types_1621795380 limit 1
1097 Block Exists (140.2ms) SELECT 1 AS one FROM `blocks` INNER JOIN `published_blocks` ON `published_blocks`.`block_id` = `blocks`.`id` INNER JOIN `block_schedules` ON `blocks`.`block_schedule_id` = `block_schedules`.`id` WHERE `block_schedules`.`id` = 356 LIMIT 1
1098 Block Load (142.4ms) SELECT `blocks`.* FROM `blocks` INNER JOIN `published_blocks` ON `published_blocks`.`block_id` = `blocks`.`id` INNER JOIN `block_schedules` ON `blocks`.`block_schedule_id` = `block_schedules`.`id` WHERE `block_schedules`.`id` = 356 ORDER BY start_date DESC, end_date DESC, blocks.start_date DESC LIMIT 1
1099 Block Load (139.0ms) SELECT `blocks`.* FROM `blocks` WHERE `blocks`.`client_id` = 261 AND `blocks`.`block_schedule_id` = 356 AND (blocks.end_date > '2019-02-24') AND (blocks.id != 23593) ORDER BY start_date asc LIMIT 1
1100 (139.1ms) truncate table buffer_location_privileges_1621795380
1101
1102 (281.6ms) insert into buffer_location_privileges_1621795380 (
1103 staff_id,
1104 location_id,
1105 begin_date,
1106 end_date
1107 )
1108 select
1109 s.id as staff_id,
1110 l.location_id,
1111 '0000-00-00' as begin_date,
1112 '9999-12-31' as end_date
1113 from (
1114 select
1115 l.id as location_id
1116 from
1117 buffer_target_call_types_1621795380 as ct
1118 inner join locations as l
1119 on ct.location_id = l.id
1120 and l.active = 1
1121 group by
1122 l.id
1123 order by null
1124 ) as l
1125 inner join staffs as s
1126 on s.client_id = 261
1127 and s.active = 1
1128 and s.take_call = 1
1129 left join location_privileges as lp
1130 on s.id = lp.staff_id
1131 where
1132 lp.id is null
1133 union
1134 select
1135 lp.staff_id,
1136 lp.location_id,
1137 lp.begin_date,
1138 coalesce(lp.end_date, '9999-12-31') as end_date
1139 from (
1140 select
1141 l.id as location_id
1142 from
1143 buffer_target_call_types_1621795380 as ct
1144 inner join locations as l
1145 on ct.location_id = l.id
1146 and l.active = 1
1147 group by
1148 l.id
1149 order by null
1150 ) as l
1151 inner join location_privileges as lp
1152 on l.location_id = lp.location_id
1153 order by null
1154
1155 (140.4ms) truncate table buffer_target_primary_availabilities_1621795380
1156
1157 (143.2ms) insert into buffer_target_primary_availabilities_1621795380 (
1158 staff_id,
1159 call_type_id,
1160 target_group_id,
1161 assignment_id,
1162 assignment_type,
1163 calendar_schedule_id,
1164 day_of_week_mask,
1165 is_weekend,
1166 staff_type_id,
1167 st_begin_date,
1168 st_end_date,
1169 location_id,
1170 lp_begin_date,
1171 lp_end_date,
1172 included_in_targets
1173 )
1174 select straight_join
1175 s.id as staff_id,
1176 ct.id as call_type_id,
1177 ct.target_group_id,
1178 ct.assignment_id,
1179 ct.assignment_type,
1180 ct.calendar_schedule_id,
1181 t1.day_of_week_mask,
1182 t1.is_weekend,
1183 ast.staff_type_id,
1184 ast.begin_date as st_begin_date,
1185 coalesce(ast.end_date, '9999-12-31') as st_end_date,
1186 lp.location_id,
1187 lp.begin_date as lp_begin_date,
1188 lp.end_date as lp_end_date,
1189 ct.included_in_targets
1190 from (
1191 select 1 as day_of_week_mask, 1 as is_weekend
1192 union select 2, 0
1193 union select 4, 0
1194 union select 8, 0
1195 union select 16, 0
1196 union select 32, 0
1197 union select 64, 1
1198 ) as t1
1199 inner join buffer_target_call_types_1621795380 as ct
1200 on (t1.day_of_week_mask & ct.days_of_week_mask) > 0
1201 and ct.all_staff_types = 1
1202 inner join staff_call_types as sct
1203 on ct.id = sct.call_type_id
1204 -- 2nd and 3rd passes (points & hours)
1205 and t1.day_of_week_mask & sct.days_of_week_mask > 0
1206
1207 inner join staffs as s
1208 on sct.staff_id = s.id
1209 and s.active = 1
1210 and s.take_call = 1
1211 inner join buffer_location_privileges_1621795380 as lp
1212 on s.id = lp.staff_id
1213 and ct.location_id = lp.location_id
1214 and coalesce(lp.end_date, '9999-12-31') >= '2019-02-25' /* current targets begin date */
1215 inner join assign_staff_types as ast
1216 on s.id = ast.staff_id
1217 and coalesce(ast.end_date, '9999-12-31') >= '2019-02-25' /* current targets begin date */
1218 -- 2nd and 3rd passes (points & hours)
1219 inner join staff_types as st
1220 on ast.staff_type_id = st.id
1221
1222 where
1223 ast.begin_date <= coalesce(lp.end_date, '9999-12-31')
1224 and lp.begin_date <= coalesce(ast.end_date, '9999-12-31')
1225 -- 2nd and 3rd passes (points & hours)
1226 and ct.calendar_schedule_id = st.point_hour_schedule_id
1227
1228 order by null
1229
1230 (1384.3ms) insert into buffer_target_primary_availabilities_1621795380 (
1231 staff_id,
1232 call_type_id,
1233 target_group_id,
1234 assignment_id,
1235 assignment_type,
1236 calendar_schedule_id,
1237 day_of_week_mask,
1238 is_weekend,
1239 staff_type_id,
1240 st_begin_date,
1241 st_end_date,
1242 location_id,
1243 lp_begin_date,
1244 lp_end_date,
1245 included_in_targets
1246 )
1247 select straight_join
1248 s.id as staff_id,
1249 ct.id as call_type_id,
1250 ct.target_group_id,
1251 ct.assignment_id,
1252 ct.assignment_type,
1253 ct.calendar_schedule_id,
1254 t1.day_of_week_mask,
1255 t1.is_weekend,
1256 ast.staff_type_id,
1257 ast.begin_date as st_begin_date,
1258 coalesce(ast.end_date, '9999-12-31') as st_end_date,
1259 lp.location_id,
1260 lp.begin_date as lp_begin_date,
1261 lp.end_date as lp_end_date,
1262 ct.included_in_targets
1263 from (
1264 select 1 as day_of_week_mask, 1 as is_weekend
1265 union select 2, 0
1266 union select 4, 0
1267 union select 8, 0
1268 union select 16, 0
1269 union select 32, 0
1270 union select 64, 1
1271 ) as t1
1272 inner join buffer_target_call_types_1621795380 as ct
1273 on (t1.day_of_week_mask & ct.days_of_week_mask) > 0
1274 and ct.all_staff_types = 0
1275 inner join staff_call_types as sct
1276 on ct.id = sct.call_type_id
1277 -- 2nd and 3rd passes (points & hours)
1278 and t1.day_of_week_mask & sct.days_of_week_mask > 0
1279
1280 inner join staffs as s
1281 on sct.staff_id = s.id
1282 and s.active = 1
1283 and s.take_call = 1
1284 inner join buffer_location_privileges_1621795380 as lp
1285 on s.id = lp.staff_id
1286 and ct.location_id = lp.location_id
1287 and coalesce(lp.end_date, '9999-12-31') >= '2019-02-25' /* current targets begin date */
1288 inner join assign_staff_types as ast
1289 on s.id = ast.staff_id
1290 and coalesce(ast.end_date, '9999-12-31') >= '2019-02-25' /* current targets begin date */
1291 inner join eligible_staff_types as est
1292 on ct.id = est.call_type_id
1293 and ast.staff_type_id = est.staff_type_id
1294 -- 2nd and 3rd passes (points & hours)
1295 inner join staff_types as st
1296 on ast.staff_type_id = st.id
1297
1298 where
1299 ast.begin_date <= coalesce(lp.end_date, '9999-12-31')
1300 and lp.begin_date <= coalesce(ast.end_date, '9999-12-31')
1301 -- 2nd and 3rd passes (points & hours)
1302 and ct.calendar_schedule_id = st.point_hour_schedule_id
1303
1304 order by null
1305
1306Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0201 - 2523.817ms
1307 (139.4ms) select id from buffer_target_primary_availabilities_1621795380 limit 1
1308 (576.5ms) insert into buffer_annual_point_targets_1621795380 (
1309 staff_id,
1310 calendar_schedule_id,
1311 is_weekend,
1312 points,
1313 estimated_vacation,
1314 available_days,
1315 relative_capacity
1316 )
1317 select
1318 t1.staff_id,
1319 t1.calendar_schedule_id,
1320 t1.is_weekend,
1321 0 as points, /* will be calculated on the next step */
1322 coalesce(t2.estimated_vacation, 0) as estimated_vacation,
1323 (t1.available_days - coalesce(t2.estimated_vacation, 0)) as available_days,
1324 0 as relative_capacity /* will be calculated on the next step */
1325 from (
1326 select
1327 staff_id,
1328 calendar_schedule_id,
1329 is_weekend,
1330 case
1331 when (is_weekend = 0) then (5 * 52)
1332 else (2 * 52)
1333 end as available_days
1334 from buffer_target_primary_availabilities_1621795380
1335 group by
1336 staff_id,
1337 calendar_schedule_id,
1338 is_weekend
1339 order by null
1340 ) as t1
1341 left join (
1342 select
1343 staff_id,
1344 is_weekend,
1345 sum(coalesce(allocated, 0)) as estimated_vacation
1346 from annual_targets
1347 where client_id = 261
1348 and assignment_id = -1
1349 and assignment_type = 'Vacation'
1350 group by
1351 staff_id,
1352 is_weekend
1353 order by null
1354 ) as t2
1355 on t1.staff_id = t2.staff_id
1356 and t1.is_weekend = t2.is_weekend
1357 order by null
1358
1359 (154.1ms) update
1360 buffer_annual_point_targets_1621795380 as apt
1361 inner join (
1362 select
1363 calendar_schedule_id,
1364 is_weekend,
1365 sum(available_days) as available_days_total
1366 from buffer_annual_point_targets_1621795380
1367 group by
1368 calendar_schedule_id,
1369 is_weekend
1370 order by null
1371 ) as t1
1372 on apt.calendar_schedule_id = t1.calendar_schedule_id
1373 and apt.is_weekend = t1.is_weekend
1374 inner join (
1375 select
1376 ct.calendar_schedule_id,
1377 t1.is_weekend,
1378 sum(dp.point) * 52 as points_total
1379 from (
1380 select 0 as wday, 1 as day_of_week_mask, 1 as is_weekend
1381 union select 1, 2, 0
1382 union select 2, 4, 0
1383 union select 3, 8, 0
1384 union select 4, 16, 0
1385 union select 5, 32, 0
1386 union select 6, 64, 1
1387 ) as t1
1388 inner join buffer_target_call_types_1621795380 as ct
1389 on (t1.day_of_week_mask & ct.days_of_week_mask & ct.points_days_of_week_mask) > 0
1390 inner join buffer_target_daily_points_1621795380 as dp
1391 on ct.id = dp.call_type_id
1392 and t1.wday = dp.day
1393 group by
1394 ct.calendar_schedule_id,
1395 t1.is_weekend
1396 order by null
1397 ) as t2
1398 on apt.calendar_schedule_id = t2.calendar_schedule_id
1399 and apt.is_weekend = t2.is_weekend
1400 left join annual_target_points as apt_2
1401 on apt.staff_id = apt_2.staff_id
1402 and apt.calendar_schedule_id = apt_2.calendar_schedule_id
1403 and apt.is_weekend = apt_2.is_weekend
1404 set apt.points =
1405 case
1406 when (apt_2.id is not null) then apt_2.points
1407 when (t1.available_days_total > 0)
1408 then (t2.points_total * apt.available_days / t1.available_days_total)
1409 else 0.0
1410 end
1411
1412 (144.5ms) update
1413 buffer_annual_point_targets_1621795380 as apt
1414 inner join target_autopopulate_timeframes as ts
1415 on apt.calendar_schedule_id = ts.calendar_schedule_id
1416 and ts.annual_target_view = 'fte'
1417 left join annual_target_points as apt_2
1418 on apt.staff_id = apt_2.staff_id
1419 and apt.calendar_schedule_id = apt_2.calendar_schedule_id
1420 and apt.is_weekend = apt_2.is_weekend
1421 set apt.points = 1.0
1422 where
1423 apt.points != 0
1424 and apt_2.id is null
1425
1426 (147.2ms) update
1427 buffer_annual_point_targets_1621795380 as apt
1428 inner join (
1429 select
1430 calendar_schedule_id,
1431 is_weekend,
1432 sum(points) as points_total,
1433 sum(available_days) as available_days_total
1434 from buffer_annual_point_targets_1621795380
1435 where points != 0
1436 group by
1437 calendar_schedule_id,
1438 is_weekend
1439 order by null
1440 ) as t1
1441 on apt.calendar_schedule_id = t1.calendar_schedule_id
1442 and apt.is_weekend = t1.is_weekend
1443 set apt.relative_capacity =
1444 case
1445 when (t1.points_total > 0 and t1.available_days_total > 0)
1446 then (apt.points / t1.points_total) / (apt.available_days / t1.available_days_total) * 100
1447 else 0
1448 end
1449
1450Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0205 - 1069.052ms
1451 (138.4ms) truncate table buffer_target_dates_list_1621795380
1452
1453 (171.9ms) insert into buffer_target_dates_list_1621795380 (
1454 block_id,
1455 calendar_schedule_id,
1456 date,
1457 day_of_week_mask,
1458 is_weekend
1459 ,dp_day_primary ,dp_day_secondary /* 2nd pass */
1460 )
1461 select
1462 dl.block_id,
1463 dl.calendar_schedule_id,
1464 dl.date,
1465 (1 << (dayofweek(dl.date) - 1)) as day_of_week_mask,
1466 case
1467 when (dayofweek(dl.date) between 2 /* Monday */ and 6 /* Friday */) then 0
1468 else 1
1469 end as is_weekend
1470 /* 2nd pass */
1471 ,case
1472 when (hl.id is null) then (dayofweek(dl.date) - 1)
1473 when (dl.date = hl.observed_date) then 7
1474 else 8
1475 end as dp_day_primary
1476 ,(dayofweek(dl.date) - 1) as dp_day_secondary
1477
1478 from(
1479 select
1480 td.block_id,
1481 td.calendar_schedule_id,
1482 date_add(td.start_date, interval ns.item_number day) as date
1483 from
1484 buffer_target_dates as td
1485 inner join numeric_sequence as ns
1486 on ns.item_number <= datediff(td.end_date, td.start_date)
1487 where
1488 td.session_id = 1621795380
1489 and td.build_point_targets = 1
1490 order by null
1491 ) as dl
1492 /* 2nd pass */
1493 left join (
1494 select
1495 hd.id,
1496 hd.observed_date,
1497 case
1498 when (hd.observed_date > hd.extended_date) then hd.extended_date
1499 else hd.observed_date
1500 end as date_from,
1501 case
1502 when (hd.observed_date < hd.extended_date) then hd.extended_date
1503 else hd.observed_date
1504 end as date_to
1505 from
1506 holidays as h
1507 inner join holiday_dates as hd
1508 on h.id = hd.holiday_id
1509 inner join (
1510 select
1511 year(min(start_date)) as year_from,
1512 year(max(end_date)) as year_to
1513 from buffer_target_dates
1514 where
1515 session_id = 1621795380 /* session_id */
1516 and build_point_targets = 1
1517 order by null
1518 ) as y
1519 on hd.year between y.year_from and y.year_to
1520 where
1521 h.client_id = 261 /* client_id */
1522 and (
1523 h.observed = 1
1524 or h.extended = 1
1525 )
1526 order by null
1527 ) as hl
1528 on dl.date between hl.date_from and hl.date_to
1529
1530 order by null
1531
1532 (426.8ms) truncate table buffer_tmp_targets_availabilities_1621795380
1533
1534 (405.7ms) insert into buffer_tmp_targets_availabilities_1621795380 (
1535 block_id,
1536 calendar_schedule_id,
1537 date,
1538 day_of_week_mask,
1539 is_weekend,
1540 call_type_id,
1541 assignment_id,
1542 assignment_type,
1543 staff_id,
1544 included_in_targets
1545 )
1546 select
1547 dl.block_id,
1548 dl.calendar_schedule_id,
1549 dl.date,
1550 dl.day_of_week_mask,
1551 dl.is_weekend,
1552 pa.call_type_id,
1553 pa.assignment_id,
1554 pa.assignment_type,
1555 pa.staff_id,
1556 pa.included_in_targets
1557 from
1558 buffer_target_dates_list_1621795380 as dl
1559 inner join buffer_target_primary_availabilities_1621795380 as pa
1560 on dl.calendar_schedule_id = pa.calendar_schedule_id
1561 and dl.day_of_week_mask = pa.day_of_week_mask
1562 and dl.date between pa.st_begin_date and pa.st_end_date
1563 and dl.date between pa.lp_begin_date and pa.lp_end_date
1564 inner join staff_types as st
1565 on pa.staff_type_id = st.id
1566 and st.active = 1
1567 order by null
1568
1569 (140.2ms) truncate table buffer_tmp_targets_availabilities_exclusions_1621795380
1570
1571 (321.0ms) insert into buffer_tmp_targets_availabilities_exclusions_1621795380 (id)
1572 select ta.id
1573 from
1574 buffer_tmp_targets_availabilities_1621795380 as ta
1575 inner join staff_rotations as sr use index (ix_staff_rotations_composite_1)
1576 on ta.staff_id = sr.staff_id
1577 and ta.date between sr.start_date and sr.end_date
1578 inner join rotations as r
1579 on sr.rotation_id = r.id
1580 and r.active = 1
1581 left join rotation_call_types as rct
1582 on sr.rotation_id = rct.rotation_id
1583 and ta.call_type_id = rct.call_type_id
1584 -- 2nd and 3rd passes
1585 and ta.day_of_week_mask & rct.days_of_week_mask > 0
1586
1587 left join daily_rotations as dr
1588 on ta.date = dr.schedule_on
1589 and ta.staff_id = dr.staff_id
1590 where
1591 rct.id is null
1592 and dr.id is null
1593 order by null
1594
1595 (267.9ms) insert into buffer_tmp_targets_availabilities_exclusions_1621795380 (id)
1596 select ta.id
1597 from
1598 buffer_tmp_targets_availabilities_1621795380 as ta
1599 inner join daily_rotations as dr
1600 on ta.date = dr.schedule_on
1601 and ta.staff_id = dr.staff_id
1602 inner join rotations as r
1603 on dr.rotation_id = r.id
1604 and r.active = 1
1605 left join rotation_call_types as rct
1606 on dr.rotation_id = rct.rotation_id
1607 and ta.call_type_id = rct.call_type_id
1608 -- 2nd and 3rd passes
1609 and ta.day_of_week_mask & rct.days_of_week_mask > 0
1610
1611 where rct.id is null
1612 order by null
1613
1614 (317.1ms) insert into buffer_tmp_targets_availabilities_exclusions_1621795380 (id)
1615 select ta.id
1616 from
1617 buffer_tmp_targets_availabilities_1621795380 as ta
1618 inner join target_autopopulate_timeframes as ts
1619 on ta.calendar_schedule_id = ts.calendar_schedule_id
1620 -- 2nd pass
1621 and ts.available_days_in_points = 1
1622
1623 inner join vacations as v
1624 on ta.date = v.schedule_on
1625 and ta.staff_id = v.staff_id
1626 and v.status = 3 /* status = fulfilled */
1627 order by null
1628
1629Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets03 - 2192.49ms
1630 (151.2ms) select distinct calendar_schedule_id
1631 from buffer_target_dates
1632 where
1633 session_id = 1621795380
1634 and build_point_targets = 1
1635
1636 (140.6ms) truncate buffer_tmp_targets_scheduled_1621795380
1637
1638 (184.2ms) insert into buffer_tmp_targets_scheduled_1621795380 (
1639 block_id,
1640 calendar_schedule_id,
1641 staff_id,
1642 assignment_id,
1643 assignment_type,
1644 day_of_week_mask,
1645 is_weekend,
1646 scheduled,
1647 other_scheduled
1648 )
1649 select
1650 dl.block_id,
1651 dl.calendar_schedule_id,
1652 sc.staff_id,
1653 0 as assignment_id,
1654 '' as assignment_type,
1655 0 as day_of_week_mask,
1656 dl.is_weekend,
1657 sum(
1658 case
1659 when (dl.calendar_schedule_id = ct.calendar_schedule_id)
1660 then coalesce(dp.point, dp_2.point, 0.0)
1661 else 0.0
1662 end
1663 ) as _scheduled,
1664 sum(
1665 case
1666 when (dl.calendar_schedule_id != ct.calendar_schedule_id)
1667 then coalesce(dp.point, dp_2.point, 0.0)
1668 else 0.0
1669 end
1670 ) as _other_scheduled
1671 from
1672 buffer_target_dates_list_1621795380 as dl
1673 inner join schedules as sc
1674 on dl.date = sc.schedule_on
1675 and sc.client_id = 261 /* client_id */
1676 inner join (
1677 select
1678 ct.id,
1679 ct.calendar_schedule_id,
1680 aa.id as assignment_annotation_id
1681 from
1682 call_types as ct
1683 inner join assignment_annotations as aa
1684 on ct.id = aa.assignmentable_id
1685 and aa.assignmentable_type = 'CallType'
1686 and aa.annotation_id = 0 /* annotation = "None" */
1687 and aa.applicable = 1
1688 inner join assignment_annotation_daily_points as dp
1689 on aa.id = dp.assignment_annotation_id
1690 and dp.point != 0
1691 where
1692 ct.client_id = 261 /* client_id */
1693 and ct.active = 1
1694 group by
1695 ct.id,
1696 ct.calendar_schedule_id,
1697 aa.id
1698 order by null
1699 ) as ct
1700 on sc.call_type_id = ct.id
1701 left join assignment_annotation_daily_points as dp
1702 on ct.assignment_annotation_id = dp.assignment_annotation_id
1703 and dl.dp_day_primary = dp.day
1704 left join assignment_annotation_daily_points as dp_2
1705 on ct.assignment_annotation_id = dp_2.assignment_annotation_id
1706 and dl.dp_day_secondary = dp_2.day
1707 inner join assign_staff_types as ast
1708 on sc.staff_id = ast.staff_id
1709 and dl.date between ast.begin_date and coalesce(ast.end_date, '9999-12-31')
1710 inner join staff_types as st
1711 on ast.staff_type_id = st.id
1712 and dl.calendar_schedule_id = st.point_hour_schedule_id
1713 group by
1714 dl.block_id,
1715 dl.calendar_schedule_id,
1716 sc.staff_id,
1717 dl.is_weekend
1718 having
1719 _scheduled != 0
1720 or _other_scheduled != 0
1721 order by null
1722
1723 (140.3ms) truncate table buffer_tmp_targets_staff_totals_1621795380
1724
1725 (177.5ms) insert into buffer_tmp_targets_staff_totals_1621795380 (
1726 block_id,
1727 calendar_schedule_id,
1728 staff_id,
1729 assignment_id,
1730 assignment_type,
1731 day_of_week_mask,
1732 is_weekend,
1733 relative_capacity,
1734 available_days,
1735 weighted_days,
1736 scheduled,
1737 other_scheduled
1738 )
1739 select
1740 t1.block_id,
1741 t1.calendar_schedule_id,
1742 t1.staff_id,
1743 0 as assignment_id,
1744 '' as assignment_type,
1745 0 as day_of_week_mask,
1746 t1.is_weekend,
1747 apt.relative_capacity,
1748 t1.available_days,
1749 (t1.available_days * apt.relative_capacity / 100) as weighted_days,
1750 coalesce(sch_t._scheduled, 0.0) as scheduled,
1751 coalesce(sch_t._other_scheduled, 0.0) as other_scheduled
1752 from (
1753 select
1754 ta.block_id,
1755 ta.calendar_schedule_id,
1756 ta.staff_id,
1757 ta.is_weekend,
1758 count(distinct ta.date) as available_days
1759 from
1760 buffer_tmp_targets_availabilities_1621795380 as ta
1761 left join buffer_tmp_targets_availabilities_exclusions_1621795380 as tae
1762 on ta.id = tae.id
1763 where tae.id is null
1764 group by
1765 ta.block_id,
1766 ta.calendar_schedule_id,
1767 ta.staff_id,
1768 ta.is_weekend
1769 order by null
1770 ) as t1
1771 inner join buffer_annual_point_targets_1621795380 as apt
1772 on t1.staff_id = apt.staff_id
1773 and t1.calendar_schedule_id = apt.calendar_schedule_id
1774 and t1.is_weekend = apt.is_weekend
1775 left join (
1776 select
1777 block_id,
1778 calendar_schedule_id,
1779 staff_id,
1780 is_weekend,
1781 sum(scheduled) as _scheduled,
1782 sum(other_scheduled) as _other_scheduled
1783 from buffer_tmp_targets_scheduled_1621795380
1784 group by
1785 block_id,
1786 calendar_schedule_id,
1787 staff_id,
1788 is_weekend
1789 order by null
1790 ) as sch_t
1791 on t1.block_id = sch_t.block_id
1792 and t1.calendar_schedule_id = sch_t.calendar_schedule_id
1793 and t1.staff_id = sch_t.staff_id
1794 and t1.is_weekend = sch_t.is_weekend
1795 order by null
1796
1797 (139.9ms) truncate table buffer_tmp_targets_client_totals_1621795380
1798
1799 (203.5ms) insert into buffer_tmp_targets_client_totals_1621795380 (
1800 block_id,
1801 calendar_schedule_id,
1802 assignment_id,
1803 assignment_type,
1804 day_of_week_mask,
1805 is_weekend,
1806 targets_total,
1807 weighted_days_total
1808 )
1809 select
1810 st.block_id,
1811 st.calendar_schedule_id,
1812 0 as assignment_id,
1813 '' as assignment_type,
1814 0 as day_of_week_mask,
1815 st.is_weekend,
1816 cp.points_total as targets_total,
1817 sum(st.weighted_days) as weighted_days_total
1818 from
1819 buffer_tmp_targets_staff_totals_1621795380 as st
1820 inner join (
1821 select
1822 dl.block_id,
1823 dl.calendar_schedule_id,
1824 dl.is_weekend,
1825 sum(
1826 case
1827 when
1828 (
1829 (
1830 ts.use_non_targeted_staff = 0
1831 or sc.id is null
1832 or pa.staff_id is not null
1833 )
1834 and (
1835 ts.remove_slots_from_denominator_targets = 0
1836 or ae.id is null
1837 )
1838 ) then coalesce(dp.point, dp_2.point, 0.0)
1839 else 0.0
1840 end
1841 ) as points_total
1842 from
1843 buffer_target_dates_list_1621795380 as dl
1844 inner join buffer_target_call_types_1621795380 as ct
1845 on dl.calendar_schedule_id = ct.calendar_schedule_id
1846 and (dl.day_of_week_mask & ct.days_of_week_mask & ct.points_days_of_week_mask) > 0
1847 left join buffer_target_daily_points_1621795380 as dp
1848 on ct.id = dp.call_type_id
1849 and dl.dp_day_primary = dp.day
1850 left join buffer_target_daily_points_1621795380 as dp_2
1851 on ct.id = dp_2.call_type_id
1852 and dl.dp_day_secondary = dp_2.day
1853 inner join target_autopopulate_timeframes as ts
1854 on dl.calendar_schedule_id = ts.calendar_schedule_id
1855 left join schedules as sc
1856 on dl.date = sc.schedule_on
1857 and ct.id = sc.call_type_id
1858 left join buffer_target_primary_availabilities_1621795380 as pa
1859 on sc.staff_id = pa.staff_id
1860 and ct.id = pa.call_type_id
1861 and dl.day_of_week_mask = pa.day_of_week_mask
1862 and dl.date between pa.st_begin_date and pa.st_end_date
1863 and dl.date between pa.lp_begin_date and pa.lp_end_date
1864 left join autopopulate_exclusions as ae
1865 on dl.date = ae.schedule_on
1866 and ct.id = ae.call_type_id
1867 group by
1868 dl.block_id,
1869 dl.calendar_schedule_id,
1870 dl.is_weekend
1871 order by null
1872 ) as cp
1873 on st.block_id = cp.block_id
1874 and st.calendar_schedule_id = cp.calendar_schedule_id
1875 and st.is_weekend = cp.is_weekend
1876 group by
1877 st.block_id,
1878 st.calendar_schedule_id,
1879 st.is_weekend,
1880 cp.points_total
1881 order by null
1882
1883 (143.4ms) insert into buffer_point_targets_1621795380 (
1884 block_id,
1885 calendar_schedule_id,
1886 staff_id,
1887 is_weekend,
1888 raw_target,
1889 target,
1890 initial_target,
1891 scheduled,
1892 other_scheduled,
1893 available_days
1894 )
1895 select
1896 st.block_id,
1897 st.calendar_schedule_id,
1898 st.staff_id,
1899 st.is_weekend,
1900 case
1901 when (ct.weighted_days_total > 0)
1902 then (ct.targets_total * st.weighted_days / ct.weighted_days_total)
1903 else 0
1904 end as raw_target,
1905 case
1906 when (ct.weighted_days_total > 0)
1907 then (ct.targets_total * st.weighted_days / ct.weighted_days_total)
1908 else 0
1909 end as target,
1910 case
1911 when (ct.weighted_days_total > 0)
1912 then (ct.targets_total * st.weighted_days / ct.weighted_days_total)
1913 else 0
1914 end as initial_target,
1915 st.scheduled,
1916 st.other_scheduled,
1917 st.available_days
1918 from
1919 buffer_tmp_targets_staff_totals_1621795380 as st
1920 inner join buffer_tmp_targets_client_totals_1621795380 as ct
1921 on st.block_id = ct.block_id
1922 and st.calendar_schedule_id = ct.calendar_schedule_id
1923 and st.is_weekend = ct.is_weekend
1924 order by null
1925
1926 (144.8ms) update
1927 buffer_point_targets_1621795380 as pt
1928 inner join (
1929 select
1930 block_id,
1931 calendar_schedule_id,
1932 is_weekend,
1933 sum(initial_target) as targets_total,
1934 sum(other_scheduled) as other_scheduled_total
1935 from buffer_point_targets_1621795380
1936 group by
1937 block_id,
1938 calendar_schedule_id,
1939 is_weekend
1940 order by null
1941 ) as t1
1942 on pt.block_id = t1.block_id
1943 and pt.calendar_schedule_id = t1.calendar_schedule_id
1944 and pt.is_weekend = t1.is_weekend
1945 left join adjusted_target_points as apt
1946 on pt.block_id = apt.block_id
1947 and pt.calendar_schedule_id = apt.calendar_schedule_id
1948 and pt.staff_id = apt.staff_id
1949 and pt.is_weekend = apt.is_weekend
1950 set
1951 pt.target =
1952 case
1953 when (apt.id is not null) then apt.target
1954 when (t1.targets_total > 0)
1955 then ((t1.targets_total + t1.other_scheduled_total) * pt.initial_target / t1.targets_total - pt.other_scheduled)
1956 else 0.0
1957 end,
1958 pt.raw_target =
1959 case
1960 when (t1.targets_total > 0)
1961 then ((t1.targets_total + t1.other_scheduled_total) * pt.initial_target / t1.targets_total - pt.other_scheduled)
1962 else 0.0
1963 end
1964
1965 (143.7ms) insert into buffer_point_targets_1621795380 (
1966 block_id,
1967 calendar_schedule_id,
1968 staff_id,
1969 is_weekend,
1970 raw_target,
1971 target,
1972 initial_target,
1973 scheduled,
1974 other_scheduled,
1975 available_days
1976 )
1977 select
1978 sch_t.block_id,
1979 sch_t.calendar_schedule_id,
1980 sch_t.staff_id,
1981 sch_t.is_weekend,
1982 0.0 as raw_target,
1983 0.0 as target,
1984 0.0 as initial_target,
1985 sum(sch_t.scheduled) as scheduled,
1986 sum(sch_t.other_scheduled) as other_scheduled,
1987 0 as available_days
1988 from
1989 buffer_tmp_targets_scheduled_1621795380 as sch_t
1990 left join buffer_point_targets_1621795380 as pt
1991 on sch_t.block_id = pt.block_id
1992 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
1993 and sch_t.staff_id = pt.staff_id
1994 and sch_t.is_weekend = pt.is_weekend
1995 where
1996 sch_t.scheduled != 0
1997 and pt.id is null
1998 group by
1999 sch_t.block_id,
2000 sch_t.calendar_schedule_id,
2001 sch_t.staff_id,
2002 sch_t.is_weekend
2003 order by null
2004
2005Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0401 - 1574.25ms
2006 (140.5ms) delete upt
2007 from
2008 buffer_target_dates as td
2009 inner join unpublished_point_targets as upt
2010 on td.calendar_schedule_id = upt.calendar_schedule_id
2011 and td.block_id = upt.block_id
2012 where
2013 td.session_id = 1621795380
2014 and td.build_point_targets = 1
2015
2016 (152.2ms) insert into unpublished_point_targets (
2017 client_id,
2018 calendar_schedule_id,
2019 block_id,
2020 staff_id,
2021 is_weekend,
2022 raw_target,
2023 target,
2024 initial_target,
2025 scheduled,
2026 other_scheduled,
2027 available_days
2028 )
2029 select
2030 td.client_id,
2031 pt.calendar_schedule_id,
2032 pt.block_id,
2033 pt.staff_id,
2034 pt.is_weekend,
2035 pt.raw_target,
2036 pt.target,
2037 pt.initial_target,
2038 pt.scheduled,
2039 pt.other_scheduled,
2040 pt.available_days
2041 from
2042 buffer_target_dates as td
2043 inner join buffer_point_targets_1621795380 as pt
2044 on td.calendar_schedule_id = pt.calendar_schedule_id
2045 and td.block_id = pt.block_id
2046 where
2047 td.session_id = 1621795380 /* session_id */
2048 and td.build_point_targets = 1
2049 union all
2050 select
2051 td.client_id,
2052 td.calendar_schedule_id,
2053 td.block_id,
2054 0 as staff_id,
2055 0 as is_weekend,
2056 0 as raw_target,
2057 0 as target,
2058 0 as initial_target,
2059 0 as scheduled,
2060 0 as other_scheduled,
2061 0 as available_days
2062 from
2063 buffer_target_dates as td
2064 where
2065 td.session_id = 1621795380 /* session_id */
2066 and td.build_point_targets = 1
2067 order by null
2068
2069Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0701 - 293.56399999999996ms
2070 (166.5ms) /* CumulativePointTargetsRule */
2071 insert into buffer_cumulative_point_targets_1621795380 (
2072 staff_id,
2073 is_weekend,
2074 calendar_schedule_id,
2075 raw_target,
2076 adjusted_target,
2077 scheduled,
2078 other_scheduled,
2079 available_days
2080 )
2081 select
2082 t.staff_id,
2083 t.is_weekend,
2084 t.calendar_schedule_id,
2085 sum(t.raw_target) as raw_target,
2086 sum(t.adjusted_target) as adjusted_target,
2087 sum(t.scheduled) as scheduled,
2088 sum(t.other_scheduled) as other_scheduled,
2089 sum(t.available_days) as available_days
2090 from (
2091 select
2092 t.calendar_schedule_id,
2093 t.block_id,
2094 t.staff_id,
2095 t.is_weekend,
2096 t.raw_target,
2097 t.target as adjusted_target,
2098 t.scheduled,
2099 t.other_scheduled,
2100 t.available_days
2101 from buffer_target_dates as td
2102 inner join buffer_point_targets_1621795380 as t
2103 on td.calendar_schedule_id = t.calendar_schedule_id
2104 and td.block_id = t.block_id
2105 where td.session_id = 1621795380
2106 and td.build_point_targets = 1
2107 and td.within_cumulative_period = 1
2108 union
2109 select
2110 pt.calendar_schedule_id,
2111 pt.block_id,
2112 pt.staff_id,
2113 pt.is_weekend,
2114 pt.raw_target,
2115 pt.target,
2116 pt.scheduled,
2117 pt.other_scheduled,
2118 pt.available_days
2119 from buffer_target_dates as td
2120 inner join point_targets as pt
2121 on td.calendar_schedule_id = pt.calendar_schedule_id
2122 and td.block_id = pt.block_id
2123 where td.session_id = 1621795380
2124 and td.build_point_targets = 0
2125 and td.point_targets_source = 'published'
2126 and td.within_cumulative_period = 1
2127 union
2128 select
2129 upt.calendar_schedule_id,
2130 upt.block_id,
2131 upt.staff_id,
2132 upt.is_weekend,
2133 upt.raw_target,
2134 upt.target,
2135 upt.scheduled,
2136 upt.other_scheduled,
2137 upt.available_days
2138 from buffer_target_dates as td
2139 inner join unpublished_point_targets as upt
2140 on td.calendar_schedule_id = upt.calendar_schedule_id
2141 and td.block_id = upt.block_id
2142 where td.session_id = 1621795380
2143 and td.build_point_targets = 0
2144 and td.point_targets_source = 'unpublished'
2145 and td.within_cumulative_period = 1
2146 order by null
2147 ) as t
2148 group by
2149 t.staff_id,
2150 t.is_weekend,
2151 t.calendar_schedule_id
2152 order by null
2153
2154Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0702 - 167.473ms
2155 (145.6ms) /* CurrentPointTargetsRule */
2156 insert into buffer_current_point_targets_1621795380 (
2157 staff_id,
2158 is_weekend,
2159 period_offset,
2160 calendar_schedule_id,
2161 raw_target,
2162 adjusted_target,
2163 scheduled,
2164 other_scheduled,
2165 available_days
2166 )
2167 select
2168 t.staff_id,
2169 t.is_weekend,
2170 t.period_offset,
2171 t.calendar_schedule_id,
2172 sum(t.raw_target) as raw_target,
2173 sum(t.adjusted_target) as adjusted_target,
2174 sum(t.scheduled) as scheduled,
2175 sum(t.other_scheduled) as other_scheduled,
2176 sum(t.available_days) as available_days
2177 from (
2178 select
2179 t.calendar_schedule_id,
2180 t.block_id,
2181 t.staff_id,
2182 td.period_offset,
2183 t.is_weekend,
2184 t.raw_target,
2185 t.target as adjusted_target,
2186 t.scheduled,
2187 t.other_scheduled,
2188 t.available_days
2189 from buffer_target_dates as td
2190 inner join buffer_point_targets_1621795380 as t
2191 on td.calendar_schedule_id = t.calendar_schedule_id
2192 and td.block_id = t.block_id
2193 where td.session_id = 1621795380
2194 and td.build_point_targets = 1
2195 and td.affected_by_populate = 1
2196 union
2197 select
2198 pt.calendar_schedule_id,
2199 pt.block_id,
2200 pt.staff_id,
2201 td.period_offset,
2202 pt.is_weekend,
2203 pt.raw_target,
2204 pt.target,
2205 pt.scheduled,
2206 pt.other_scheduled,
2207 pt.available_days
2208 from buffer_target_dates as td
2209 inner join point_targets as pt
2210 on td.calendar_schedule_id = pt.calendar_schedule_id
2211 and td.block_id = pt.block_id
2212 where td.session_id = 1621795380
2213 and td.build_point_targets = 0
2214 and td.point_targets_source = 'published'
2215 and td.affected_by_populate = 1
2216 union
2217 select
2218 upt.calendar_schedule_id,
2219 upt.block_id,
2220 upt.staff_id,
2221 td.period_offset,
2222 upt.is_weekend,
2223 upt.raw_target,
2224 upt.target,
2225 upt.scheduled,
2226 upt.other_scheduled,
2227 upt.available_days
2228 from buffer_target_dates as td
2229 inner join unpublished_point_targets as upt
2230 on td.calendar_schedule_id = upt.calendar_schedule_id
2231 and td.block_id = upt.block_id
2232 where td.session_id = 1621795380
2233 and td.build_point_targets = 0
2234 and td.point_targets_source = 'unpublished'
2235 and td.affected_by_populate = 1
2236 order by null
2237 ) as t
2238 group by
2239 t.staff_id,
2240 t.is_weekend,
2241 t.period_offset,
2242 t.calendar_schedule_id
2243 order by null
2244
2245Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets0703 - 146.274ms
2246 (275.3ms) /* CurrentPointTargetsRule, CurrentWeeklyPointTargetsRule, CumulativePointTargetsRule, CumulativeWeeklyPointTargetsRule */
2247 insert into buffer_point_targets_1621795380 (
2248 calendar_schedule_id,
2249 block_id,
2250 staff_id,
2251 is_weekend,
2252 raw_target,
2253 target,
2254 scheduled,
2255 other_scheduled,
2256 available_days,
2257 initial_target
2258 )
2259 select
2260 pt.calendar_schedule_id,
2261 pt.block_id,
2262 pt.staff_id,
2263 pt.is_weekend,
2264 pt.raw_target,
2265 pt.target,
2266 pt.scheduled,
2267 pt.other_scheduled,
2268 pt.available_days,
2269 pt.initial_target
2270 from buffer_target_dates as td
2271 inner join point_targets as pt
2272 on td.calendar_schedule_id = pt.calendar_schedule_id
2273 and td.block_id = pt.block_id
2274 where td.session_id = 1621795380
2275 and td.build_point_targets = 0
2276 and td.point_targets_source = 'published'
2277 and td.affected_by_populate = 1
2278 union
2279 select
2280 upt.calendar_schedule_id,
2281 upt.block_id,
2282 upt.staff_id,
2283 upt.is_weekend,
2284 upt.raw_target,
2285 upt.target,
2286 upt.scheduled,
2287 upt.other_scheduled,
2288 upt.available_days,
2289 upt.initial_target
2290 from buffer_target_dates as td
2291 inner join unpublished_point_targets as upt
2292 on td.calendar_schedule_id = upt.calendar_schedule_id
2293 and td.block_id = upt.block_id
2294 where td.session_id = 1621795380
2295 and td.build_point_targets = 0
2296 and td.point_targets_source = 'unpublished'
2297 and td.affected_by_populate = 1
2298 order by null
2299
2300Execution Logger: Scheduler::AutoPopulate::Queries::Targets::Targets07Reports - 275.841ms
2301INFO : (05-17 07:42:00) --> fill: 7 - Scheduler::AutoPopulate::Queries::Query013
2302 (447.3ms) insert into buffer_counter_increments_1621795380 (
2303 schedule_id,
2304 calls,
2305 points,
2306 hours,
2307 affects_cumulative_targets
2308 )
2309 select
2310 sc.id as schedule_id,
2311 case
2312 when (ct.included_in_targets > 0) then 1
2313 else 0
2314 end as calls,
2315 coalesce(
2316 case
2317 when (hl.observed_date is null or dp.point is not null) then dp.point
2318 else dp_2.point
2319 end,
2320 0.0
2321 ) as points,
2322 ct.hours,
2323 case
2324 when (b.display_order between (t1.timeframe_ending - (3 /* cumulative targets period */ - 1)) and t1.timeframe_ending) then 1
2325 else 0
2326 end as affects_cumulative_targets
2327 from
2328 buffer_schedules_1621795380 as sc
2329 inner join (
2330 select
2331 id,
2332 included_in_targets,
2333 coalesce(
2334 timestampdiff(
2335 minute,
2336 concat('1900-01-01 ', maketime(start_time_hour, start_time_minute, 0)),
2337 concat(
2338 '1900-01-0',
2339 case
2340 when ((
2341 start_time_hour | start_time_minute | end_time_hour | end_time_minute > 0
2342 )
2343 and (
2344 timediff(
2345 maketime(end_time_hour, end_time_minute, 0),
2346 maketime(start_time_hour, start_time_minute, 0)
2347 ) <= 0
2348 )
2349 ) then '2'
2350 else '1'
2351 end,
2352 ' ',
2353 maketime(end_time_hour, end_time_minute, 0)
2354 )
2355 ) / 60,
2356 0.0
2357 ) as hours
2358 from call_types
2359 where
2360 client_id = 261
2361 and active = 1
2362 order by null
2363 ) as ct
2364 on sc.call_type_id = ct.id
2365 inner join blocks as b
2366 on sc.block_id = b.id
2367 inner join (
2368 select
2369 calendar_schedule_id,
2370 max(
2371 case
2372 when (should_be_populated = 1) then end_block_display_order
2373 else null
2374 end
2375 ) as timeframe_ending
2376 from buffer_periods_1621795380
2377 group by calendar_schedule_id
2378 order by null
2379 ) as t1
2380 on sc.calendar_schedule_id = t1.calendar_schedule_id
2381 left join (
2382 select
2383 hd.observed_date,
2384 case
2385 when (hd.observed_date > hd.extended_date) then hd.extended_date
2386 else hd.observed_date
2387 end as date_from,
2388 case
2389 when (hd.observed_date < hd.extended_date) then hd.extended_date
2390 else hd.observed_date
2391 end as date_to
2392 from
2393 holidays as h
2394 inner join holiday_dates as hd
2395 on h.id = hd.holiday_id
2396 inner join (
2397 select
2398 year(min(schedule_on)) as year_from,
2399 year(max(schedule_on)) as year_to
2400 from buffer_schedules_1621795380
2401 where should_be_evaluated = 1
2402 ) as y
2403 on hd.year between y.year_from and y.year_to
2404 where
2405 h.client_id = 261
2406 and (
2407 h.observed = 1
2408 or h.extended = 1
2409 )
2410 order by null
2411 ) as hl
2412 on sc.schedule_on between hl.date_from and hl.date_to
2413 left join assignment_annotations as aa
2414 on ct.id = aa.assignmentable_id
2415 and aa.assignmentable_type = 'CallType'
2416 and aa.annotation_id = 0 /* annotation = "None" */
2417 and aa.applicable = 1
2418 left join assignment_annotation_daily_points as dp
2419 on aa.id = dp.assignment_annotation_id
2420 and case
2421 when (hl.observed_date is null) then (dayofweek(sc.schedule_on) - 1)
2422 when (sc.schedule_on = hl.observed_date) then 7
2423 else 8
2424 end = dp.day
2425 left join assignment_annotation_daily_points as dp_2
2426 on aa.id = dp_2.assignment_annotation_id
2427 and (dayofweek(sc.schedule_on) - 1) = dp_2.day
2428 where sc.should_be_evaluated = 1
2429 order by null
2430
2431INFO : (05-17 07:42:01) --> fill: 8 - Scheduler::AutoPopulate::Queries::Query014
2432 (140.4ms) -- Prepare the information about the blocks we're populating and the linkage patterns which will be used on those blocks
2433 insert into buffer_linkage_patterns_1621795380 (
2434 period_offset,
2435 calendar_schedule_id,
2436 block_id,
2437 block_start_date,
2438 block_start_dow,
2439 block_length,
2440 linkage_pattern_id,
2441 pattern_start_dow,
2442 days_before_start,
2443 pattern_length,
2444 start_offset,
2445 iterations_count
2446 )
2447 select
2448 b1.period_offset,
2449 b1.calendar_schedule_id,
2450 b1.block_id,
2451 b2.start_date as block_start_date,
2452 dayofweek(b2.start_date) as block_start_dow,
2453 (datediff(b2.end_date, b2.start_date) + 1) as block_length,
2454 lp.id as linkage_pattern_id,
2455 (lp.start_on + 1) as pattern_start_dow,
2456 lp.days_before_start,
2457 (lp.length * 7) as pattern_length,
2458 null as start_offset,
2459 null as iterations_count
2460 from (
2461 select
2462 calendar_schedule_id,
2463 block_id,
2464 period_offset
2465 from buffer_schedules_1621795380
2466 group by
2467 calendar_schedule_id,
2468 block_id,
2469 period_offset
2470 order by null
2471 ) as b1
2472 inner join blocks as b2
2473 on b1.block_id = b2.id
2474 inner join linkage_patterns as lp
2475 on lp.client_id = 261
2476 and b1.calendar_schedule_id = lp.calendar_schedule_id
2477 order by null
2478
2479 (142.4ms) -- Calculate the basic offset ("+" or "-") that will be applied to a linkage pattern if a block and a pattern are starting on different day of week
2480 update buffer_linkage_patterns_1621795380
2481 set start_offset = if(
2482 (pattern_start_dow + (case when (pattern_start_dow < block_start_dow) then 7 else 0 end) - block_start_dow) <= days_before_start,
2483 (pattern_start_dow + (case when (pattern_start_dow < block_start_dow) then 7 else 0 end) - block_start_dow),
2484 (block_start_dow + (case when (block_start_dow < pattern_start_dow) then 7 else 0 end) - pattern_start_dow) * (-1)
2485 )
2486
2487 (140.4ms) -- In some cases (when a block and a pattern are starting on different day of week or when a pattern is shorter than a block)
2488 -- a pattern should be repeated couple of times (in order to cover the entire block)
2489 update buffer_linkage_patterns_1621795380
2490 set iterations_count =
2491 ceiling(
2492 (
2493 block_length +
2494 case
2495 when (start_offset < 0) then abs(start_offset)
2496 else 0
2497 end
2498 ) * 1.0 / pattern_length
2499 )
2500
2501 (143.6ms) -- Generate an assignments sequence for every linkage pattern
2502 insert into buffer_schedules_linkage_patterns_1621795380 (
2503 call_type_id,
2504 staff_id,
2505 schedule_on,
2506 period_offset,
2507 day_of_week_mask,
2508 display_order,
2509 week_number,
2510 should_be_evaluated,
2511 should_be_populated,
2512 linkage_instance_id,
2513 block_id,
2514 calendar_schedule_id
2515 )
2516 select
2517 lps.assignment_id as call_type_id,
2518 null as staff_id,
2519 case
2520 when (lp.start_offset < 0)
2521 then date_add(lp.block_start_date, interval (lp.start_offset + ns.item_number * lp.pattern_length + lps.offset) day)
2522 else
2523 date_add(lp.block_start_date, interval ((lp.start_offset + ns.item_number * lp.pattern_length + lps.offset) mod lp.block_length) day)
2524 end as schedule_on,
2525 lp.period_offset,
2526 null as day_of_week_mask,
2527 null as display_order,
2528 null as week_number,
2529 0 as should_be_evaluated,
2530 0 as should_be_populated,
2531 lp.linkage_pattern_id as linkage_instance_id,
2532 lp.block_id,
2533 lp.calendar_schedule_id
2534 from
2535 numeric_sequence as ns
2536 inner join buffer_linkage_patterns_1621795380 as lp
2537 on ns.item_number <= (lp.iterations_count - 1)
2538 inner join linkage_pattern_slots as lps
2539 on lp.linkage_pattern_id = lps.linkage_pattern_id
2540 and lps.assignment_type = 'CallType'
2541 where
2542 case
2543 when (lp.start_offset < 0)
2544 then (lp.start_offset + ns.item_number * lp.pattern_length + lps.offset)
2545 else
2546 (ns.item_number * lp.pattern_length + lps.offset)
2547 end between 0 and (lp.block_length - 1)
2548 order by null
2549
2550 (140.1ms) -- Fill the columns that we left blank in the previous "INSERT"
2551 update
2552 buffer_schedules_linkage_patterns_1621795380 as slp
2553 inner join clients as cl
2554 on cl.id = 261
2555 inner join call_types as ct
2556 on slp.call_type_id = ct.id
2557 left join buffer_schedules_1621795380 as bs
2558 on slp.schedule_on = bs.schedule_on
2559 and slp.call_type_id = bs.call_type_id
2560 set
2561 slp.day_of_week_mask = (1 << (dayofweek(slp.schedule_on) - 1)),
2562 slp.display_order = ct.display_order,
2563 slp.week_number =
2564 yearweek(
2565 slp.schedule_on,
2566 case
2567 when (cl.start_of_week = 0) then 2
2568 else 7
2569 end
2570 ),
2571 slp.should_be_evaluated = coalesce(bs.should_be_evaluated, 0),
2572 slp.should_be_populated = coalesce(bs.should_be_populated, 0);
2573
2574 (141.1ms) -- Delete linkage patterns that don't have intersection with assignments we should auto-populate
2575 delete slp_1
2576 from
2577 buffer_schedules_linkage_patterns_1621795380 as slp_1
2578 inner join (
2579 select linkage_instance_id
2580 from buffer_schedules_linkage_patterns_1621795380
2581 group by linkage_instance_id
2582 having
2583 max(should_be_evaluated) = 0
2584 and max(should_be_populated) = 0
2585 order by null
2586 ) as slp_2
2587 on slp_1.linkage_instance_id = slp_2.linkage_instance_id
2588
2589 (144.3ms) -- Use a linkage pattern ID instead of linkage instance ID for those assignments that intersect with linkage patterns
2590 update
2591 buffer_schedules_linkage_patterns_1621795380 as slp
2592 inner join buffer_schedules_1621795380 as bs_1
2593 on slp.schedule_on = bs_1.schedule_on
2594 and slp.call_type_id = bs_1.call_type_id
2595 inner join buffer_schedules_1621795380 as bs_2
2596 on bs_1.linkage_instance_id = bs_2.linkage_instance_id
2597 set bs_2.linkage_instance_id = slp.linkage_instance_id
2598
2599 (140.9ms) -- Linkage pattern slots that don't have intersection with auto-populate assignments but are a part of a pattern that has such intersection
2600 -- should be copied over to the buffer schedules table (used during the auto-populate process)
2601 insert into buffer_schedules_1621795380 (
2602 call_type_id,
2603 staff_id,
2604 schedule_on,
2605 period_offset,
2606 day_of_week_mask,
2607 is_weekend,
2608 display_order,
2609 week_number,
2610 should_be_evaluated,
2611 should_be_populated,
2612 linkage_instance_id,
2613 block_id,
2614 calendar_schedule_id
2615 )
2616 select
2617 call_type_id,
2618 staff_id,
2619 schedule_on,
2620 period_offset,
2621 day_of_week_mask,
2622 case
2623 when (day_of_week_mask & 62 > 0) then 0
2624 else 1
2625 end as is_weekend,
2626 display_order,
2627 week_number,
2628 should_be_evaluated,
2629 should_be_populated,
2630 linkage_instance_id,
2631 block_id,
2632 calendar_schedule_id
2633 from buffer_schedules_linkage_patterns_1621795380
2634 where
2635 should_be_evaluated = 0
2636 and should_be_populated = 0
2637
2638INFO : (05-17 07:42:02) --> fill: 9 - Scheduler::AutoPopulate::Queries::Query015
2639 (612.1ms) insert into buffer_schedules_1621795380 (
2640 call_type_id,
2641 staff_id,
2642 schedule_on,
2643 day_of_week_mask,
2644 is_weekend,
2645 display_order,
2646 should_be_evaluated,
2647 should_be_populated,
2648 linkage_instance_id
2649 )
2650 select distinct
2651 schedules_call_overlap.call_type_id,
2652 schedules_call_overlap.staff_id,
2653 schedules_call_overlap.schedule_on,
2654 (1 << (dayofweek(schedules_call_overlap.schedule_on) - 1)) as day_of_week_mask,
2655 case
2656 when (dayofweek(schedules_call_overlap.schedule_on) between 2 and 6) then 0
2657 else 1
2658 end as is_weekend,
2659 call_types.display_order,
2660 0 as should_be_evaluated,
2661 0 as should_be_populated,
2662 -1 as linkage_instance_id
2663 from (
2664 select schedule_on
2665 from buffer_schedules_1621795380
2666 where should_be_evaluated = 1
2667 group by schedule_on
2668 order by null
2669 ) as buffer_schedules_1
2670 inner join schedules as schedules_call_overlap
2671 on schedules_call_overlap.client_id = 261
2672 and buffer_schedules_1.schedule_on = schedules_call_overlap.schedule_on
2673 left join buffer_schedules_1621795380 as buffer_schedules_2
2674 on schedules_call_overlap.schedule_on = buffer_schedules_2.schedule_on
2675 and schedules_call_overlap.call_type_id = buffer_schedules_2.call_type_id
2676 inner join call_types
2677 on schedules_call_overlap.call_type_id = call_types.id
2678 where buffer_schedules_2.id is null
2679 order by null
2680
2681INFO : (05-17 07:42:02) --> fill: 10 - Scheduler::AutoPopulate::Queries::Query02
2682INFO : (05-17 07:42:02) --> fill: 11 - Scheduler::AutoPopulate::Queries::Query03
2683INFO : (05-17 07:42:02) --> fill: 12 - Scheduler::AutoPopulate::Queries::Query04
2684INFO : (05-17 07:42:02) --> fill: 13 - Scheduler::AutoPopulate::Queries::Query045
2685INFO : (05-17 07:42:02) --> fill: 14 - Scheduler::AutoPopulate::Queries::QueryA
2686 (32485.2ms) insert into buffer_schedules_1621795380 (
2687 call_type_id,
2688 staff_id,
2689 schedule_on,
2690 day_of_week_mask,
2691 is_weekend,
2692 display_order,
2693 should_be_evaluated,
2694 should_be_populated,
2695 linkage_instance_id
2696 )
2697 select distinct straight_join
2698 schedules.call_type_id,
2699 schedules.staff_id,
2700 schedules.schedule_on,
2701 (1 << (dayofweek(schedules.schedule_on) - 1)) as day_of_week_mask,
2702 case
2703 when (dayofweek(schedules.schedule_on) between 2 and 6) then 0
2704 else 1
2705 end as is_weekend,
2706 call_types.display_order,
2707 0 as should_be_evaluated,
2708 0 as should_be_populated,
2709 -1 as linkage_instance_id
2710 from
2711 buffer_schedules_1621795380 as buffer_schedules_1
2712 inner join negative_links_influences use index (ix_unique_links)
2713 on buffer_schedules_1.day_of_week_mask = negative_links_influences.day_of_week_mask
2714 and buffer_schedules_1.call_type_id = negative_links_influences.source_id
2715 and negative_links_influences.source_type = 'CallType'
2716 and negative_links_influences.target_type = 'CallType'
2717 inner join schedules use index (ix_schedules_call_date)
2718 on date_add(
2719 buffer_schedules_1.schedule_on,
2720 interval negative_links_influences.offset day
2721 ) = schedules.schedule_on
2722 and negative_links_influences.target_id = schedules.call_type_id
2723 left join buffer_schedules_1621795380 as buffer_schedules_2 use index (ix_buffer_schedules_composite_1)
2724 on schedules.schedule_on = buffer_schedules_2.schedule_on
2725 and schedules.call_type_id = buffer_schedules_2.call_type_id
2726 inner join call_types
2727 on schedules.call_type_id = call_types.id
2728 where
2729 buffer_schedules_1.linkage_instance_id >= 0
2730 and buffer_schedules_1.should_be_evaluated = 1
2731 and buffer_schedules_2.id is null
2732 order by null
2733
2734INFO : (05-17 07:42:35) --> fill: 15 - Scheduler::AutoPopulate::Queries::QueryB
2735 (7976.7ms) insert into buffer_schedules_1621795380 (
2736 call_type_id,
2737 staff_id,
2738 schedule_on,
2739 day_of_week_mask,
2740 is_weekend,
2741 display_order,
2742 should_be_evaluated,
2743 should_be_populated,
2744 linkage_instance_id
2745 )
2746 select distinct straight_join
2747 (-1 * negative_links_influences.target_id) as call_type_id,
2748 vacations.staff_id,
2749 vacations.schedule_on,
2750 (1 << (dayofweek(vacations.schedule_on) - 1)) as day_of_week_mask,
2751 vacations.weekend_on as is_weekend,
2752 -1 as display_order,
2753 0 as should_be_evaluated,
2754 0 as should_be_populated,
2755 -1 as linkage_instance_id
2756 from
2757 buffer_schedules_1621795380 as buffer_schedules_1
2758 inner join negative_links_influences use index (ix_unique_links)
2759 on buffer_schedules_1.day_of_week_mask = negative_links_influences.day_of_week_mask
2760 and buffer_schedules_1.call_type_id = negative_links_influences.source_id
2761 and negative_links_influences.source_type = 'CallType'
2762 and negative_links_influences.target_id > 0
2763 and negative_links_influences.target_type in ('Vacation', 'NonClinicalType')
2764 inner join vacations use index (ix_vacations_on_schedule_and_client)
2765 on vacations.client_id = 261 /* client_id */
2766 and date_add(
2767 buffer_schedules_1.schedule_on,
2768 interval negative_links_influences.offset day
2769 ) = vacations.schedule_on
2770 and negative_links_influences.target_id = vacations.non_clinical_type_id
2771 and vacations.status in (3) /* based on the "non-working requests" settings */
2772 left join buffer_schedules_1621795380 as buffer_schedules_2 use index (ix_buffer_schedules_composite_1)
2773 on vacations.staff_id = buffer_schedules_2.staff_id
2774 and vacations.schedule_on = buffer_schedules_2.schedule_on
2775 and (-1 * negative_links_influences.target_id) = buffer_schedules_2.call_type_id
2776 where
2777 buffer_schedules_1.linkage_instance_id >= 0
2778 and buffer_schedules_1.should_be_evaluated = 1
2779 and buffer_schedules_2.id is null
2780 order by null
2781
2782INFO : (05-17 07:42:43) --> fill: 16 - Scheduler::AutoPopulate::Queries::Query05
2783 (414.4ms) insert into buffer_linkages_1621795380 (
2784 linkage_instance_id,
2785 slots_count_total,
2786 has_conflicts
2787 )
2788 select straight_join
2789 schedules.linkage_instance_id,
2790 count(1) as slots_count_total,
2791 if(linkage_conflicts.linkage_template_id is not null, 1, 0) as has_conflicts
2792 from
2793 buffer_schedules_1621795380 as schedules
2794 left join (
2795 select straight_join
2796 linkage_relations.linkage_template_id
2797 from linkage_relations
2798 inner join negative_links_influences use index (ix_unique_links)
2799 on linkage_relations.day_of_week_mask = negative_links_influences.day_of_week_mask
2800 and linkage_relations.call_type_id = negative_links_influences.source_id
2801 and negative_links_influences.source_type = 'CallType'
2802 and linkage_relations.linked_call_type_id = negative_links_influences.target_id
2803 and negative_links_influences.target_type = 'CallType'
2804 and linkage_relations.distance_in_days = negative_links_influences.offset
2805 where linkage_relations.client_id = 261 /* client_id */
2806 and (
2807 linkage_relations.call_type_id != linkage_relations.linked_call_type_id
2808 or linkage_relations.distance_in_days != 0
2809 )
2810 group by linkage_relations.linkage_template_id
2811 order by null
2812 ) as linkage_conflicts
2813 on (schedules.linkage_instance_id div 1000000) = linkage_conflicts.linkage_template_id
2814 where schedules.linkage_instance_id >= 0
2815 group by
2816 schedules.linkage_instance_id,
2817 has_conflicts
2818 order by null
2819
2820INFO : (05-17 07:42:43) --> fill: 17 - Scheduler::AutoPopulate::Queries::Query06
2821 (148.1ms) insert into buffer_target_assignments_1621795380 (
2822 call_type_id,
2823 target_group_id,
2824 assignment_id,
2825 assignment_type
2826 )
2827 select
2828 t1.call_type_id,
2829 ifnull(tg.id, 0) as target_group_id,
2830 if(tg.id is null, t1.call_type_id, tg.id) as assignment_id,
2831 if(tg.id is null, 'CallType', 'TargetGroup') as assignment_type
2832 from (
2833 select ct.id as call_type_id
2834 from
2835 buffer_schedules_1621795380 as sc
2836 inner join call_types as ct
2837 on sc.call_type_id = ct.id
2838 and ct.active = 1
2839 and ct.included_in_targets > 0
2840 where linkage_instance_id >= 0
2841 group by ct.id
2842 order by null
2843 ) as t1
2844 left join target_group_calls as tgc
2845 on t1.call_type_id = tgc.call_type_id
2846 left join target_groups as tg
2847 on tgc.target_group_id = tg.id
2848 and tg.active = 1
2849 order by null
2850
2851INFO : (05-17 07:42:43) --> fill: 18 - Scheduler::AutoPopulate::Queries::Query07
2852INFO : (05-17 07:42:43) --> fill: 19 - Scheduler::AutoPopulate::Queries::Query0702
2853INFO : (05-17 07:42:43) --> fill: 20 - Scheduler::AutoPopulate::Queries::Query0705
2854 (142.5ms) insert into buffer_linkage_call_type_assignments_1621795380 (
2855 linkage_instance_id,
2856 call_type_id,
2857 is_weekend,
2858 period_offset,
2859 calendar_schedule_id,
2860 max_assignments,
2861 assignments_count
2862 )
2863 select
2864 s.linkage_instance_id,
2865 s.call_type_id,
2866 s.is_weekend,
2867 s.period_offset,
2868 s.calendar_schedule_id,
2869 case
2870 when (s.is_weekend = 0) then ct.max_weekday_assignments
2871 else ct.max_weekend_assignments
2872 end as _max_assignments,
2873 sum(1) as assignments_count
2874 from buffer_schedules_1621795380 as s
2875 inner join call_types as ct
2876 on s.call_type_id = ct.id
2877 and ct.active = 1
2878 and (
2879 ct.max_weekday_assignments is not null
2880 or ct.max_weekend_assignments is not null
2881 )
2882 where s.linkage_instance_id >= 0
2883 and s.staff_id is null
2884 group by
2885 s.linkage_instance_id,
2886 s.call_type_id,
2887 s.is_weekend,
2888 s.period_offset,
2889 s.calendar_schedule_id,
2890 _max_assignments
2891 having _max_assignments >= 0
2892 order by null
2893
2894INFO : (05-17 07:42:44) --> fill: 21 - Scheduler::AutoPopulate::Queries::Query0706
2895 (143.5ms) insert into buffer_call_type_assignments_1621795380 (
2896 staff_id,
2897 call_type_id,
2898 is_weekend,
2899 period_offset,
2900 calendar_schedule_id,
2901 assignments_count
2902 )
2903 select
2904 sc.staff_id,
2905 sc.call_type_id,
2906 sc.weekend_on as is_weekend,
2907 p.period_offset,
2908 p.calendar_schedule_id,
2909 sum(1) as assignments_count
2910 from buffer_periods_1621795380 as p
2911 inner join call_types as ct
2912 on p.calendar_schedule_id = ct.calendar_schedule_id
2913 and ct.active = 1
2914 and (
2915 ct.max_weekday_assignments is not null
2916 or ct.max_weekend_assignments is not null
2917 )
2918 inner join schedules as sc
2919 on ct.id = sc.call_type_id
2920 and sc.schedule_on between p.start_date and p.end_date
2921 and sc.staff_id is not null
2922 where p.should_be_evaluated = 1
2923 group by
2924 sc.staff_id,
2925 sc.call_type_id,
2926 sc.weekend_on,
2927 p.period_offset,
2928 p.calendar_schedule_id
2929 order by null
2930
2931INFO : (05-17 07:42:44) --> fill: 22 - Scheduler::AutoPopulate::Queries::Query0707
2932INFO : (05-17 07:42:44) --> fill: 23 - Scheduler::AutoPopulate::Queries::Query0708
2933 (148.7ms) insert into buffer_linkage_assigned_days_1621795380 (
2934 linkage_instance_id,
2935 period_offset,
2936 week_number,
2937 schedule_on,
2938 is_weekend
2939 )
2940 select distinct
2941 sc.linkage_instance_id,
2942 sc.period_offset,
2943 sc.week_number,
2944 sc.schedule_on,
2945 sc.is_weekend
2946 from
2947 buffer_schedules_1621795380 as sc
2948 inner join call_types as ct
2949 on sc.call_type_id = ct.id
2950 and ct.unassigned_day = 0
2951 where
2952 sc.linkage_instance_id >= 0
2953 and sc.staff_id is null
2954 order by null
2955
2956INFO : (05-17 07:42:44) --> fill: 24 - Scheduler::AutoPopulate::Queries::Query0709
2957INFO : (05-17 07:42:44) --> fill: 25 - Scheduler::AutoPopulate::Queries::Query07_10_AL
2958 (142.5ms) /* AssignmentLimitsPerPeriod, AssignmentLimitsPerWeek, AssignmentLimitsRolling, AssignmentLimitsConsecutive */
2959 insert into buffer_assignment_limit_call_types_1621795380 (
2960 assignment_limit_id, call_type_id
2961 )
2962 select al.id as assignment_limit_id, ct.id as call_type_id
2963 from assignment_limits as al
2964 inner join assignment_limit_call_types as alct
2965 on al.id = alct.assignment_limit_id
2966 inner join call_types as ct
2967 on alct.call_type_id = ct.id
2968 and ct.active = 1
2969 where al.client_id = 261
2970 and al.active = 1
2971 union
2972 select al.id as assignment_limit_id, ct.id as call_type_id
2973 from assignment_limits as al
2974 inner join call_types as ct
2975 on al.client_id = ct.client_id
2976 and al.calendar_schedule_id = ct.calendar_schedule_id
2977 and ct.active = 1
2978 where al.client_id = 261
2979 and al.active = 1
2980 and al.all_current_schedule_assignments = 1
2981 union
2982 select al.id as assignment_limit_id, ct.id as call_type_id
2983 from assignment_limits as al
2984 inner join call_types as ct
2985 on al.client_id = ct.client_id
2986 and al.calendar_schedule_id != ct.calendar_schedule_id
2987 and ct.active = 1
2988 where al.client_id = 261
2989 and al.active = 1
2990 and al.all_other_schedule_assignments = 1
2991 order by null
2992
2993 (141.7ms) /* AssignmentLimitsPerPeriod, AssignmentLimitsPerWeek, AssignmentLimitsRolling, AssignmentLimitsConsecutive */
2994 insert into buffer_assignment_limit_staff_types_1621795380 (
2995 assignment_limit_id, staff_type_id
2996 )
2997 select al.id as assignment_limit_id, st.id as staff_type_id
2998 from assignment_limits as al
2999 inner join assignment_limit_staff_types as alst
3000 on al.id = alst.assignment_limit_id
3001 inner join staff_types as st
3002 on alst.staff_type_id = st.id
3003 and st.active = 1
3004 where al.client_id = 261
3005 and al.active = 1
3006 union
3007 select al.id as assignment_limit_id, st.id as staff_type_id
3008 from assignment_limits as al
3009 inner join staff_types as st
3010 on al.client_id = st.client_id
3011 and st.active = 1
3012 where al.client_id = 261
3013 and al.active = 1
3014 and al.all_staff_types = 1
3015 order by null
3016
3017INFO : (05-17 07:42:44) --> fill: 26 - Scheduler::AutoPopulate::Queries::Query07_10_AL_01
3018 (145.6ms) /* AssignmentLimitsPerPeriod */
3019 insert into buffer_assignment_limit_periods_1621795380 (
3020 assignment_limit_id, period_id, start_date, end_date
3021 )
3022 select
3023 al.id as assignment_limit_id,
3024 if(
3025 bs.blocks_type = 0,
3026 if(
3027 (month(b.start_date) - pt.begin_period) >= 0,
3028 year(b.start_date) * 100 + (month(b.start_date) - pt.begin_period) div pt.timeframe_type + 1,
3029 (year(b.start_date) - 1) * 100 + (month(b.start_date) + 12 - pt.begin_period) div pt.timeframe_type + 1
3030 ),
3031 b.display_order
3032 ) as period_id,
3033 min(b.start_date) as start_date,
3034 max(b.end_date) as end_date
3035 from assignment_limits as al
3036 inner join calendar_schedules as cs
3037 on al.calendar_schedule_id = cs.id
3038 inner join block_schedules as bs
3039 on cs.block_schedule_id = bs.id
3040 inner join blocks as b
3041 on bs.id = b.block_schedule_id
3042 and b.end_date >= date_add(now(), interval -24 month)
3043 inner join population_timeframes as pt
3044 on pt.client_id = 261
3045 and al.timeframe_type = pt.timeframe_type
3046 where al.client_id = 261
3047 and al.active = 1
3048 and al.max_per_period_limit is not null
3049 group by al.id, period_id
3050 order by null
3051
3052 (588.5ms) /* AssignmentLimitsPerPeriod */
3053 insert into buffer_linkage_assignments_count_periods_1621795380 (
3054 linkage_instance_id, assignment_limit_id, schedule_on, start_date, end_date, assignments_count
3055 )
3056 select sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on, alp.start_date, alp.end_date,
3057 count(distinct sc.id) as assignments_count
3058 from buffer_schedules_1621795380 as sc
3059 inner join buffer_assignment_limit_call_types_1621795380 as alct
3060 on sc.call_type_id = alct.call_type_id
3061 inner join assignment_limits as al
3062 on alct.assignment_limit_id = al.id
3063 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
3064 and al.max_per_period_limit is not null
3065 inner join buffer_assignment_limit_periods_1621795380 as alp
3066 on alct.assignment_limit_id = alp.assignment_limit_id
3067 and sc.schedule_on between alp.start_date and alp.end_date
3068 where sc.linkage_instance_id >= 0
3069 and sc.staff_id is null
3070 group by sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on, alp.start_date, alp.end_date
3071 order by null
3072
3073INFO : (05-17 07:42:45) --> fill: 27 - Scheduler::AutoPopulate::Queries::Query07_10_AL_02
3074 (155.0ms) /* AssignmentLimitsPerWeek */
3075 insert into buffer_linkage_assignments_count_weeks_1621795380 (
3076 linkage_instance_id, assignment_limit_id, schedule_on, start_date, end_date, assignments_count
3077 )
3078 select sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on,
3079 if(
3080 cl.start_of_week = 0,
3081 date_add(sc.schedule_on, interval (1 - dayofweek(sc.schedule_on)) day),
3082 date_add(sc.schedule_on, interval (0 - weekday(sc.schedule_on)) day)
3083 ) as start_date,
3084 if(
3085 cl.start_of_week = 0,
3086 date_add(sc.schedule_on, interval (7 - dayofweek(sc.schedule_on)) day),
3087 date_add(sc.schedule_on, interval (6 - weekday(sc.schedule_on)) day)
3088 ) as end_date,
3089 count(distinct sc.id) as assignments_count
3090 from buffer_schedules_1621795380 as sc
3091 inner join buffer_assignment_limit_call_types_1621795380 as alct
3092 on sc.call_type_id = alct.call_type_id
3093 inner join assignment_limits as al
3094 on alct.assignment_limit_id = al.id
3095 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
3096 and al.max_weekly_limit is not null
3097 inner join clients as cl
3098 on cl.id = 261
3099 where sc.linkage_instance_id >= 0
3100 and sc.staff_id is null
3101 group by sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on, start_date, end_date
3102 order by null
3103
3104INFO : (05-17 07:42:45) --> fill: 28 - Scheduler::AutoPopulate::Queries::Query07_10_AL_03
3105 (143.6ms) /* AssignmentLimitsRolling */
3106 insert into buffer_linkage_assignments_count_rolling_1621795380 (
3107 linkage_instance_id, assignment_limit_id, schedule_on, start_date, end_date, assignments_count
3108 )
3109 select sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on,
3110 date_add(sc.schedule_on, interval (1 - ns.item_number) day) as start_date,
3111 date_add(sc.schedule_on, interval (al.max_rolling_period - ns.item_number) day) as end_date,
3112 count(distinct sc.id) as assignments_count
3113 from buffer_schedules_1621795380 as sc
3114 inner join buffer_assignment_limit_call_types_1621795380 as alct
3115 on sc.call_type_id = alct.call_type_id
3116 inner join assignment_limits as al
3117 on alct.assignment_limit_id = al.id
3118 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
3119 and al.max_rolling_period is not null
3120 and al.max_rolling_limit is not null
3121 inner join numeric_sequence as ns
3122 on ns.item_number between 1 and al.max_rolling_period
3123 where sc.linkage_instance_id >= 0
3124 and sc.staff_id is null
3125 group by sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on, start_date, end_date
3126 order by null
3127
3128INFO : (05-17 07:42:45) --> fill: 29 - Scheduler::AutoPopulate::Queries::Query07_10_AL_04
3129 (143.1ms) /* AssignmentLimitsConsecutive */
3130 insert into buffer_linkage_assignments_count_consecutive_1621795380 (
3131 linkage_instance_id, assignment_limit_id, schedule_on, start_date, end_date
3132 )
3133 select sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on,
3134 date_add(sc.schedule_on, interval (1 - ns.item_number) day) as start_date,
3135 date_add(sc.schedule_on, interval ((al.max_consecutive_limit + 1) - ns.item_number) day) as end_date
3136 from buffer_schedules_1621795380 as sc
3137 inner join buffer_assignment_limit_call_types_1621795380 as alct
3138 on sc.call_type_id = alct.call_type_id
3139 inner join assignment_limits as al
3140 on alct.assignment_limit_id = al.id
3141 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
3142 and al.max_consecutive_limit is not null
3143 inner join numeric_sequence as ns
3144 on ns.item_number between 1 and (al.max_consecutive_limit + 1)
3145 where sc.linkage_instance_id >= 0
3146 and sc.staff_id is null
3147 group by sc.linkage_instance_id, alct.assignment_limit_id, sc.schedule_on, start_date, end_date
3148 order by null
3149
3150INFO : (05-17 07:42:45) --> fill: 30 - Scheduler::AutoPopulate::Queries::Query08
3151 (142.9ms) insert into buffer_staff_daily_counts_1621795380 (
3152 staff_id, schedule_on, linkage_instance_id, slots_count
3153 )
3154 select staff_id, schedule_on, null as linkage_instance_id,
3155 count(1) as slots_count
3156 from buffer_schedules_1621795380
3157 where staff_id is not null
3158 and call_type_id > 0 /* VC */
3159 group by staff_id, schedule_on
3160 order by null
3161
3162 (145.8ms) insert into buffer_staff_daily_counts_1621795380 (
3163 staff_id, schedule_on, linkage_instance_id, slots_count
3164 )
3165 select staff_id, schedule_on, linkage_instance_id,
3166 count(1) as slots_count
3167 from buffer_schedules_1621795380
3168 where staff_id is not null
3169 and call_type_id > 0 /* VC */
3170 group by staff_id, schedule_on, linkage_instance_id
3171 order by null
3172
3173INFO : (05-17 07:42:46) --> fill: 31 - Scheduler::AutoPopulate::Queries::Query085
3174 (330.9ms) insert into buffer_staff_specializations_1621795380 (
3175 staff_id, specialization_id
3176 )
3177 select staff_id, specialization_id
3178 from view_staff_specializations
3179 where client_id = 261
3180 order by null
3181
3182 (149.5ms) insert into buffer_specialization_daily_counts_1621795380 (
3183 specialization_id, staff_id, schedule_on, staffs_scheduled, max_scheduled, should_be_evaluated
3184 )
3185 select sp.id as specialization_id,
3186 null as staff_id,
3187 bs_1.schedule_on,
3188 count(distinct st_sp.staff_id) as staffs_scheduled,
3189 sp.max_scheduled,
3190 if(bs_1.day_of_week_mask & sp.days_of_week_mask > 0 or sp.days_of_week_mask = 0, 1, 0) as should_be_evaluated
3191 from (
3192 select schedule_on, day_of_week_mask
3193 from buffer_schedules_1621795380
3194 where should_be_evaluated = 1
3195 group by schedule_on, day_of_week_mask
3196 order by null
3197 ) as bs_1
3198 inner join specializations as sp
3199 on sp.client_id = 261
3200 and sp.active = 1
3201 inner join buffer_schedules_1621795380 as bs_2
3202 on bs_1.schedule_on = bs_2.schedule_on
3203 and bs_2.call_type_id > 0 /* is not VC */
3204 inner join max_applicable_call_types as mact
3205 on sp.id = mact.specialization_id
3206 and bs_2.call_type_id = mact.call_type_id
3207 left join buffer_staff_specializations_1621795380 as st_sp
3208 on bs_2.staff_id = st_sp.staff_id
3209 and sp.id = st_sp.specialization_id
3210 group by sp.id, bs_1.schedule_on, sp.max_scheduled
3211 order by null
3212
3213 (141.0ms) insert into buffer_specialization_daily_counts_1621795380 (
3214 specialization_id, staff_id, schedule_on, staffs_scheduled, max_scheduled, should_be_evaluated
3215 )
3216 select sp.id as specialization_id,
3217 st_sp.staff_id,
3218 bs_1.schedule_on,
3219 1 as staffs_scheduled,
3220 sp.max_scheduled,
3221 if(bs_1.day_of_week_mask & sp.days_of_week_mask > 0 or sp.days_of_week_mask = 0, 1, 0) as should_be_evaluated
3222 from (
3223 select schedule_on, day_of_week_mask
3224 from buffer_schedules_1621795380
3225 where should_be_evaluated = 1
3226 group by schedule_on, day_of_week_mask
3227 order by null
3228 ) as bs_1
3229 inner join specializations as sp
3230 on sp.client_id = 261
3231 and sp.active = 1
3232 inner join buffer_schedules_1621795380 as bs_2
3233 on bs_1.schedule_on = bs_2.schedule_on
3234 and bs_2.call_type_id > 0 /* is not VC */
3235 inner join max_applicable_call_types as mact
3236 on sp.id = mact.specialization_id
3237 and bs_2.call_type_id = mact.call_type_id
3238 inner join buffer_staff_specializations_1621795380 as st_sp
3239 on bs_2.staff_id = st_sp.staff_id
3240 and sp.id = st_sp.specialization_id
3241 group by sp.id, st_sp.staff_id, bs_1.schedule_on, sp.max_scheduled
3242 order by null
3243
3244INFO : (05-17 07:42:46) --> fill: 32 - Scheduler::AutoPopulate::Queries::Query09
3245 (138.8ms) truncate table buffer_location_privileges_1621795380
3246
3247 (162.3ms) insert into buffer_location_privileges_1621795380 (
3248 staff_id,
3249 location_id,
3250 begin_date,
3251 end_date
3252 )
3253 select
3254 s.id as staff_id,
3255 l.location_id,
3256 '0000-00-00' as begin_date,
3257 '9999-12-31' as end_date
3258 from (
3259 select l.id as location_id
3260 from
3261 buffer_schedules_1621795380 as sc
3262 inner join call_types as ct
3263 on sc.call_type_id = ct.id
3264 and ct.active = 1
3265 inner join locations as l
3266 on ct.location_id = l.id
3267 and l.active = 1
3268 where sc.linkage_instance_id >= 0
3269 and sc.should_be_evaluated = 1
3270 group by l.id
3271 order by null
3272 ) as l
3273 inner join staffs as s
3274 on s.client_id = 261
3275 and s.active = 1
3276 and s.take_call = 1
3277 and s.auto_populatable = 1
3278 left join location_privileges as lp
3279 on s.id = lp.staff_id
3280 where lp.id is null
3281 union
3282 select
3283 lp.staff_id,
3284 lp.location_id,
3285 lp.begin_date,
3286 COALESCE(lp.end_date, '9999-12-31')
3287 from (
3288 select l.id as location_id
3289 from
3290 buffer_schedules_1621795380 as sc
3291 inner join call_types as ct
3292 on sc.call_type_id = ct.id
3293 and ct.active = 1
3294 inner join locations as l
3295 on ct.location_id = l.id
3296 and l.active = 1
3297 where sc.linkage_instance_id >= 0
3298 and sc.should_be_evaluated = 1
3299 group by l.id
3300 order by null
3301 ) as l
3302 inner join location_privileges as lp
3303 on l.location_id = lp.location_id
3304 order by null;
3305
3306 (27040.0ms) insert into buffer_static_availabilities_1621795380 (
3307 schedule_id,
3308 staff_id,
3309 staff_type_id,
3310 is_primary
3311 )
3312 select
3313 schedules.id as schedule_id,
3314 staffs.id as staff_id,
3315 assign_staff_types.staff_type_id,
3316 if(schedules.day_of_week_mask & staff_call_types.days_of_week_mask & ifnull(rotation_call_types.days_of_week_mask, 127) > 0, 1, 0) as is_primary
3317 from
3318 buffer_schedules_1621795380 as schedules
3319 /* AvailabilityRule */
3320 inner join call_types
3321 on schedules.call_type_id = call_types.id
3322 and call_types.active = 1
3323 and schedules.day_of_week_mask & call_types.days_of_week_mask > 0
3324 inner join staff_call_types
3325 on call_types.id = staff_call_types.call_type_id
3326 and schedules.day_of_week_mask & (staff_call_types.days_of_week_mask | staff_call_types.secondary_availability_days_of_week_mask) > 0
3327 inner join staffs
3328 on staff_call_types.staff_id = staffs.id
3329 and staffs.active = 1
3330 and staffs.take_call = 1
3331 and staffs.auto_populatable = 1
3332 inner join buffer_location_privileges_1621795380 as location_privileges
3333 on staffs.id = location_privileges.staff_id
3334 and call_types.location_id = location_privileges.location_id
3335 and schedules.schedule_on between location_privileges.begin_date and ifnull(location_privileges.end_date, '9999-12-31')
3336 inner join assign_staff_types
3337 on staffs.id = assign_staff_types.staff_id
3338 and schedules.schedule_on between assign_staff_types.begin_date and ifnull(assign_staff_types.end_date, '9999-12-31')
3339 left join eligible_staff_types
3340 on staff_call_types.call_type_id = eligible_staff_types.call_type_id
3341 and assign_staff_types.staff_type_id = eligible_staff_types.staff_type_id
3342 left join staff_rotations
3343 on staffs.id = staff_rotations.staff_id
3344 and schedules.schedule_on between staff_rotations.start_date and staff_rotations.end_date
3345 left join daily_rotations
3346 on staffs.id = daily_rotations.staff_id
3347 and schedules.schedule_on = daily_rotations.schedule_on
3348 left join rotations
3349 on rotations.id = ifnull(daily_rotations.rotation_id, staff_rotations.rotation_id)
3350 and rotations.active = 1
3351 left join rotation_call_types
3352 on rotations.id = rotation_call_types.rotation_id
3353 and staff_call_types.call_type_id = rotation_call_types.call_type_id
3354 and schedules.day_of_week_mask & (rotation_call_types.days_of_week_mask | rotation_call_types.secondary_availability_days_of_week_mask) > 0
3355 /* RequiredRotationsRule */
3356 left join required_rotations
3357 on staff_call_types.call_type_id = required_rotations.call_type_id
3358 left join staff_rotations as staff_rotations2
3359 on staffs.id = staff_rotations2.staff_id
3360 and required_rotations.rotation_id = staff_rotations2.rotation_id
3361 and schedules.schedule_on >= staff_rotations2.start_date
3362 /* NoCallRequestsHiddenHardRule */
3363 left join request_settings
3364 on assign_staff_types.staff_type_id = request_settings.staff_type_id
3365 left join requests
3366 on schedules.schedule_on = requests.schedule_on
3367 and staffs.id = requests.staff_id
3368 and requests.request_type = 0 /* type = no_call */
3369 and requests.status in (1, 3) /* status = approved or fulfilled */
3370 and call_types.is_no_call_requestable = 1
3371 left join request_call_types
3372 on requests.id = request_call_types.request_id
3373 and schedules.call_type_id = request_call_types.call_type_id
3374 where
3375 schedules.linkage_instance_id >= 0
3376 and schedules.should_be_evaluated = 1
3377 and (
3378 call_types.all_staff_types = 1
3379 or eligible_staff_types.id is not null
3380 )
3381 and (
3382 rotations.id is null
3383 or rotation_call_types.id is not null
3384 )
3385 and (
3386 requests.id is null
3387 or (
3388 requests.all_call_types = 1
3389 and request_settings.call_only_all_call_switch = 1 /* calls only */
3390 and call_types.assignment_type = 1 /* clinical */
3391 )
3392 or (
3393 requests.all_call_types = 0
3394 and request_call_types.id is null
3395 )
3396 )
3397 group by
3398 schedules.id,
3399 staffs.id,
3400 assign_staff_types.staff_type_id,
3401 is_primary
3402 having
3403 sum(if(required_rotations.id is not null and staff_rotations2.id is null, 1, 0)) = 0 /* RequiredRotationsRule */
3404 and is_primary IN (0,1) /* PrimaryAvailabilityRule */
3405 order by null
3406
3407INFO : (05-17 07:43:14) --> fill: 33 - Scheduler::AutoPopulate::Queries::Query092
3408 (223.4ms) /* RotationPostCallRule */
3409 /* Exclude people and slots when a post-call is not allowed on the first day of a rotation */
3410 delete sa
3411 from buffer_static_availabilities_1621795380 as sa
3412 inner join buffer_schedules_1621795380 as sc
3413 on sa.schedule_id = sc.id
3414 inner join call_types as ct
3415 on sc.call_type_id = ct.id
3416 and ct.assignment_type = 0 /* call */
3417 inner join staff_rotations as sr
3418 on sa.staff_id = sr.staff_id
3419 and date_add(sc.schedule_on, interval 1 day) = sr.start_date
3420 inner join rotations as r
3421 on sr.rotation_id = r.id
3422 and r.post_call_allowed = 0
3423
3424INFO : (05-17 07:43:14) --> fill: 34 - Scheduler::AutoPopulate::Queries::Query093
3425INFO : (05-17 07:43:14) --> fill: 35 - Scheduler::AutoPopulate::Queries::Query095
3426 (15132.2ms) insert into buffer_negative_relations_1621795380 (
3427 schedule_id,
3428 affected_by_schedule_id,
3429 staff_id
3430 )
3431 select
3432 b_schedules.id as schedule_id,
3433 b_schedules_negative_link.id as affected_by_schedule_id,
3434 b_schedules_negative_link.staff_id
3435 from
3436 buffer_schedules_1621795380 as b_schedules
3437 /* NegativeLinkRule */
3438 inner join negative_links_influences
3439 on b_schedules.day_of_week_mask = negative_links_influences.day_of_week_mask
3440 and b_schedules.call_type_id = negative_links_influences.source_id
3441 and negative_links_influences.source_type = 'CallType'
3442 and negative_links_influences.target_type = 'CallType'
3443 inner join buffer_schedules_1621795380 as b_schedules_negative_link
3444 on date_add(
3445 b_schedules.schedule_on,
3446 interval negative_links_influences.offset day
3447 ) = b_schedules_negative_link.schedule_on
3448 and negative_links_influences.target_id = b_schedules_negative_link.call_type_id
3449 and b_schedules.id != b_schedules_negative_link.id
3450 where
3451 b_schedules.linkage_instance_id >= 0
3452 and b_schedules.should_be_evaluated = 1
3453 order by null
3454
3455 (8601.9ms) insert into buffer_negative_relations_1621795380 (
3456 schedule_id,
3457 affected_by_schedule_id,
3458 staff_id
3459 )
3460 select
3461 b_schedules.id as schedule_id,
3462 b_schedules_negative_link.id as affected_by_schedule_id,
3463 b_schedules_negative_link.staff_id
3464 from
3465 buffer_schedules_1621795380 as b_schedules
3466 /* NegativeLinkRule */
3467 inner join negative_links_influences
3468 on b_schedules.day_of_week_mask = negative_links_influences.day_of_week_mask
3469 and b_schedules.call_type_id = negative_links_influences.source_id
3470 and negative_links_influences.source_type = 'CallType'
3471 and negative_links_influences.target_type in ('Vacation', 'NonClinicalType')
3472 inner join buffer_schedules_1621795380 as b_schedules_negative_link
3473 on date_add(
3474 b_schedules.schedule_on,
3475 interval negative_links_influences.offset day
3476 ) = b_schedules_negative_link.schedule_on
3477 and (-1 * negative_links_influences.target_id) = b_schedules_negative_link.call_type_id
3478 and b_schedules.id != b_schedules_negative_link.id
3479 where
3480 b_schedules.linkage_instance_id >= 0
3481 and b_schedules.should_be_evaluated = 1
3482 order by null
3483
3484 (221.9ms) delete from buffer_schedules_1621795380
3485 where call_type_id < 0 /* vacations and non-clinicals */
3486
3487INFO : (05-17 07:43:38) --> fill: 36 - Scheduler::AutoPopulate::Queries::Query097
3488 (559.0ms) insert into buffer_staff_assigned_days_1621795380 (
3489 staff_id, period_offset, week_number, schedule_on, is_weekend, is_assigned
3490 )
3491 select staffs.staff_id,
3492 if(days.within_period = 1, days.period_offset, null) as period_offset,
3493 yearweek(days.schedule_on, if(clients.start_of_week = 0, 2, 7)) as week_number,
3494 days.schedule_on,
3495 if(dayofweek(days.schedule_on) in (7, 1), 1, 0) as is_weekend,
3496 if(schedules.staff_id is not null or vacations.staff_id is not null, 1, 0) as is_assigned
3497 from (
3498 select distinct staff_id
3499 from buffer_static_availabilities_1621795380
3500 order by null
3501 ) as staffs
3502 inner join (
3503 select p.period_offset,
3504 date_add(date_add(p.start_date, interval -6 day), interval (digits_1.digit * 100 + digits_2.digit * 10 + digits_3.digit) day) as schedule_on,
3505 if((digits_1.digit * 100 + digits_2.digit * 10 + digits_3.digit) - 6 between 0 and datediff(p.end_date, p.start_date), 1, 0) as within_period
3506 from buffer_periods_1621795380 as p
3507 inner join (
3508 select 0 as digit union select 1 union select 2 union select 3 union select 4
3509 union select 5 union select 6 union select 7 union select 8 union select 9
3510 ) as digits_1
3511 inner join (
3512 select 0 as digit union select 1 union select 2 union select 3 union select 4
3513 union select 5 union select 6 union select 7 union select 8 union select 9
3514 ) as digits_2
3515 inner join (
3516 select 0 as digit union select 1 union select 2 union select 3 union select 4
3517 union select 5 union select 6 union select 7 union select 8 union select 9
3518 ) as digits_3
3519 where p.calendar_schedule_id = 1167
3520 and p.should_be_evaluated = 1
3521 and (digits_1.digit * 100 + digits_2.digit * 10 + digits_3.digit) <= datediff(p.end_date, p.start_date) + 12
3522 order by null
3523 ) as days
3524 inner join (
3525 select min(start_date) as start_date, max(end_date) as end_date
3526 from buffer_periods_1621795380
3527 where calendar_schedule_id = 1167
3528 and should_be_evaluated = 1
3529 order by null
3530 ) as limits
3531 inner join clients
3532 on clients.id = 261
3533 left join (
3534 select sc.staff_id, sc.schedule_on
3535 from buffer_periods_1621795380 as p
3536 inner join schedules as sc
3537 on sc.client_id = 261
3538 and sc.schedule_on between date_add(p.start_date, interval -6 day) and date_add(p.end_date, interval 6 day)
3539 inner join call_types as ct
3540 on sc.call_type_id = ct.id
3541 and ct.unassigned_day = 0
3542 where p.calendar_schedule_id = 1167
3543 and p.should_be_evaluated = 1
3544 group by sc.staff_id, sc.schedule_on
3545 order by null
3546 ) as schedules
3547 on staffs.staff_id = schedules.staff_id
3548 and days.schedule_on = schedules.schedule_on
3549 left join (
3550 select v.staff_id, v.schedule_on
3551 from buffer_periods_1621795380 as p
3552 inner join vacations as v
3553 on v.client_id = 261
3554 and v.schedule_on between date_add(p.start_date, interval -6 day) and date_add(p.end_date, interval 6 day)
3555 and v.status IN (3)
3556 inner join non_clinical_types as nct
3557 on v.non_clinical_type_id = nct.id
3558 and nct.active = 1
3559 and nct.unassigned_day = 0
3560 where p.calendar_schedule_id = 1167
3561 and p.should_be_evaluated = 1
3562 group by v.staff_id, v.schedule_on
3563 order by null
3564 ) as vacations
3565 on staffs.staff_id = vacations.staff_id
3566 and days.schedule_on = vacations.schedule_on
3567 where days.within_period = 1
3568 or yearweek(days.schedule_on, if(clients.start_of_week = 0, 2, 7)) in (
3569 yearweek(limits.start_date, if(clients.start_of_week = 0, 2, 7)),
3570 yearweek(limits.end_date, if(clients.start_of_week = 0, 2, 7))
3571 )
3572 order by null
3573
3574INFO : (05-17 07:43:38) --> fill: 37 - Scheduler::AutoPopulate::Queries::Query098
3575 (306.9ms) insert into buffer_combined_availabilities_1621795380 (
3576 schedule_id, staff_id, staff_type_id, is_primary, linkage_instance_id, has_violations
3577 )
3578 select sc.id as schedule_id, sa.staff_id, sa.staff_type_id, sa.is_primary,
3579 sc.linkage_instance_id, 0 as has_violations
3580 from buffer_schedules_1621795380 as sc
3581 /* Static availability */
3582 inner join buffer_static_availabilities_1621795380 as sa
3583 on sc.id = sa.schedule_id
3584 inner join buffer_linkages_1621795380 as l
3585 on sc.linkage_instance_id = l.linkage_instance_id
3586 where sc.should_be_evaluated = 1
3587 and l.has_conflicts = 0
3588
3589 (141.3ms) insert into buffer_schedule_linkages_1621795380 (
3590 staff_id, linkage_instance_id, slots_count
3591 )
3592 select staff_id, linkage_instance_id, count(1) as slots_count
3593 from buffer_schedules_1621795380 use index (ix_buffer_schedules_composite_2)
3594 where staff_id is not null
3595 and linkage_instance_id >= 0
3596 group by staff_id, linkage_instance_id
3597 order by null
3598
3599INFO : (05-17 07:43:39) --> fill: 38 - Scheduler::AutoPopulate::Queries::Query09_09_AL_01
3600 (13202.5ms) /* AssignmentLimitsPerPeriod */
3601 insert into buffer_staff_assignments_count_periods_1621795380 (
3602 assignment_limit_id, staff_id, start_date, end_date, assignments_count
3603 )
3604 select straight_join lac.assignment_limit_id, ca.staff_id, lac.start_date, lac.end_date,
3605 count(distinct sc.id) as assignments_count
3606 from (
3607 select linkage_instance_id, assignment_limit_id, start_date, end_date
3608 from buffer_linkage_assignments_count_periods_1621795380
3609 group by linkage_instance_id, assignment_limit_id, start_date, end_date
3610 order by null
3611 ) as lac
3612 inner join (
3613 select linkage_instance_id, staff_id
3614 from buffer_combined_availabilities_1621795380
3615 group by linkage_instance_id, staff_id
3616 order by null
3617 ) as ca
3618 on lac.linkage_instance_id = ca.linkage_instance_id
3619 inner join assignment_limits as al
3620 on lac.assignment_limit_id = al.id
3621 inner join schedules as sc
3622 on ca.staff_id = sc.staff_id
3623 and sc.schedule_on between lac.start_date and lac.end_date
3624 and ((1 << (dayofweek(sc.schedule_on) - 1)) & al.considered_days_of_week_mask) > 0
3625 inner join buffer_assignment_limit_call_types_1621795380 as alct
3626 on lac.assignment_limit_id = alct.assignment_limit_id
3627 and sc.call_type_id = alct.call_type_id
3628 inner join assign_staff_types as ast
3629 on sc.staff_id = ast.staff_id
3630 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
3631 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3632 on lac.assignment_limit_id = alst.assignment_limit_id
3633 and ast.staff_type_id = alst.staff_type_id
3634 group by lac.assignment_limit_id, ca.staff_id, lac.start_date, lac.end_date
3635 order by null
3636
3637INFO : (05-17 07:43:52) --> fill: 39 - Scheduler::AutoPopulate::Queries::Query09_09_AL_02
3638 (138.9ms) /* AssignmentLimitsPerWeek */
3639 insert into buffer_staff_assignments_count_weeks_1621795380 (
3640 assignment_limit_id, staff_id, start_date, end_date, assignments_count
3641 )
3642 select straight_join lac.assignment_limit_id, ca.staff_id, lac.start_date, lac.end_date,
3643 count(distinct sc.id) as assignments_count
3644 from (
3645 select linkage_instance_id, assignment_limit_id, start_date, end_date
3646 from buffer_linkage_assignments_count_weeks_1621795380
3647 group by linkage_instance_id, assignment_limit_id, start_date, end_date
3648 order by null
3649 ) as lac
3650 inner join (
3651 select linkage_instance_id, staff_id
3652 from buffer_combined_availabilities_1621795380
3653 group by linkage_instance_id, staff_id
3654 order by null
3655 ) as ca
3656 on lac.linkage_instance_id = ca.linkage_instance_id
3657 inner join assignment_limits as al
3658 on lac.assignment_limit_id = al.id
3659 inner join schedules as sc
3660 on ca.staff_id = sc.staff_id
3661 and sc.schedule_on between lac.start_date and lac.end_date
3662 and ((1 << (dayofweek(sc.schedule_on) - 1)) & al.considered_days_of_week_mask) > 0
3663 inner join buffer_assignment_limit_call_types_1621795380 as alct
3664 on lac.assignment_limit_id = alct.assignment_limit_id
3665 and sc.call_type_id = alct.call_type_id
3666 inner join assign_staff_types as ast
3667 on sc.staff_id = ast.staff_id
3668 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
3669 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3670 on lac.assignment_limit_id = alst.assignment_limit_id
3671 and ast.staff_type_id = alst.staff_type_id
3672 group by lac.assignment_limit_id, ca.staff_id, lac.start_date, lac.end_date
3673 order by null
3674
3675INFO : (05-17 07:43:52) --> fill: 40 - Scheduler::AutoPopulate::Queries::Query09_09_AL_03
3676 (277.1ms) /* AssignmentLimitsRolling */
3677 insert into buffer_staff_assignments_count_rolling_1621795380 (
3678 assignment_limit_id, staff_id, start_date, end_date, assignments_count
3679 )
3680 select straight_join lac.assignment_limit_id, ca.staff_id, lac.start_date, lac.end_date,
3681 count(distinct sc.id) as assignments_count
3682 from (
3683 select linkage_instance_id, assignment_limit_id, start_date, end_date
3684 from buffer_linkage_assignments_count_rolling_1621795380
3685 group by linkage_instance_id, assignment_limit_id, start_date, end_date
3686 order by null
3687 ) as lac
3688 inner join (
3689 select linkage_instance_id, staff_id
3690 from buffer_combined_availabilities_1621795380
3691 group by linkage_instance_id, staff_id
3692 order by null
3693 ) as ca
3694 on lac.linkage_instance_id = ca.linkage_instance_id
3695 inner join assignment_limits as al
3696 on lac.assignment_limit_id = al.id
3697 inner join schedules as sc
3698 on ca.staff_id = sc.staff_id
3699 and sc.schedule_on between lac.start_date and lac.end_date
3700 and ((1 << (dayofweek(sc.schedule_on) - 1)) & al.considered_days_of_week_mask) > 0
3701 inner join buffer_assignment_limit_call_types_1621795380 as alct
3702 on lac.assignment_limit_id = alct.assignment_limit_id
3703 and sc.call_type_id = alct.call_type_id
3704 inner join assign_staff_types as ast
3705 on sc.staff_id = ast.staff_id
3706 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
3707 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3708 on lac.assignment_limit_id = alst.assignment_limit_id
3709 and ast.staff_type_id = alst.staff_type_id
3710 group by lac.assignment_limit_id, ca.staff_id, lac.start_date, lac.end_date
3711 order by null
3712
3713INFO : (05-17 07:43:52) --> fill: 41 - Scheduler::AutoPopulate::Queries::Query09_09_AL_04
3714 (143.4ms) /* AssignmentLimitsConsecutive */
3715 insert into buffer_staff_assignments_count_consecutive_1621795380 (
3716 assignment_limit_id, staff_id, schedule_on, start_date, end_date
3717 )
3718 select straight_join lac.assignment_limit_id, ca.staff_id, sc.schedule_on, lac.start_date, lac.end_date
3719 from (
3720 select linkage_instance_id, assignment_limit_id, start_date, end_date
3721 from buffer_linkage_assignments_count_consecutive_1621795380
3722 group by linkage_instance_id, assignment_limit_id, start_date, end_date
3723 order by null
3724 ) as lac
3725 inner join (
3726 select linkage_instance_id, staff_id
3727 from buffer_combined_availabilities_1621795380
3728 group by linkage_instance_id, staff_id
3729 order by null
3730 ) as ca
3731 on lac.linkage_instance_id = ca.linkage_instance_id
3732 inner join assignment_limits as al
3733 on lac.assignment_limit_id = al.id
3734 inner join schedules as sc
3735 on ca.staff_id = sc.staff_id
3736 and sc.schedule_on between lac.start_date and lac.end_date
3737 and ((1 << (dayofweek(sc.schedule_on) - 1)) & al.considered_days_of_week_mask) > 0
3738 inner join buffer_assignment_limit_call_types_1621795380 as alct
3739 on lac.assignment_limit_id = alct.assignment_limit_id
3740 and sc.call_type_id = alct.call_type_id
3741 inner join assign_staff_types as ast
3742 on sc.staff_id = ast.staff_id
3743 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
3744 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3745 on lac.assignment_limit_id = alst.assignment_limit_id
3746 and ast.staff_type_id = alst.staff_type_id
3747 group by lac.assignment_limit_id, ca.staff_id, sc.schedule_on, lac.start_date, lac.end_date
3748 order by null
3749
3750INFO : (05-17 07:43:53) --> fill: 42 - Scheduler::AutoPopulate::Queries::Query09_12_Points
3751INFO : (05-17 07:43:53) --> fill: 43 - Scheduler::AutoPopulate::Queries::Query09_12_Hours
3752INFO : (05-17 07:43:53) --> fill: 44 - Scheduler::AutoPopulate::Queries::Query10
3753 RuleSet Load (138.7ms) SELECT `rule_sets`.* FROM `rule_sets` WHERE `rule_sets`.`id` = 1232 LIMIT 1
3754 Client Load (278.3ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
3755 (141.4ms) select
3756 coalesce(max(
3757 case
3758 when (ct.max_weekday_assignments > 0) then 1
3759 else 0
3760 end
3761 ), 0) as weekday_flag,
3762 coalesce(max(
3763 case
3764 when (ct.max_weekend_assignments > 0) then 1
3765 else 0
3766 end
3767 ), 0) as weekend_flag
3768 from
3769 buffer_auto_populate_slots_1621795380 as aps
3770 inner join call_types as ct
3771 on aps.call_type_id = ct.id
3772
3773 RuleSet Load (137.5ms) SELECT `rule_sets`.* FROM `rule_sets` WHERE `rule_sets`.`id` = 1232 LIMIT 1
3774 Client Load (280.4ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
3775 RuleSet Load (137.4ms) SELECT `rule_sets`.* FROM `rule_sets` WHERE `rule_sets`.`id` = 1232 LIMIT 1
3776 Client Load (294.5ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
3777 (139.2ms) delete ca
3778 from buffer_combined_availabilities_1621795380 as ca
3779 inner join (
3780 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
3781 sum(lac.assignments_count) as assignments_count
3782 from (
3783 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3784 from buffer_combined_availabilities_1621795380 as ca
3785 inner join buffer_schedules_1621795380 as sc
3786 on ca.schedule_id = sc.id
3787 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3788 order by null
3789 ) as ca_sc
3790 inner join buffer_linkage_assignments_count_weeks_1621795380 as lac
3791 on ca_sc.linkage_instance_id = lac.linkage_instance_id
3792 and ca_sc.schedule_on = lac.schedule_on
3793 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3794 on lac.assignment_limit_id = alst.assignment_limit_id
3795 and ca_sc.staff_type_id = alst.staff_type_id
3796 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
3797 order by null
3798 ) as lac
3799 on ca.linkage_instance_id = lac.linkage_instance_id
3800 and ca.staff_id = lac.staff_id
3801 inner join assignment_limits as al
3802 on lac.assignment_limit_id = al.id
3803 left join buffer_staff_assignments_count_weeks_1621795380 as sac
3804 on lac.assignment_limit_id = sac.assignment_limit_id
3805 and lac.staff_id = sac.staff_id
3806 and lac.start_date = sac.start_date
3807 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_weekly_limit
3808
3809 (294.3ms) delete ca
3810 from buffer_combined_availabilities_1621795380 as ca
3811 inner join (
3812 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
3813 count(distinct if(sac.id is null, lac.schedule_on, null)) as assignments_count
3814 from (
3815 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3816 from buffer_combined_availabilities_1621795380 as ca
3817 inner join buffer_schedules_1621795380 as sc
3818 on ca.schedule_id = sc.id
3819 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3820 order by null
3821 ) as ca_sc
3822 inner join buffer_linkage_assignments_count_consecutive_1621795380 as lac
3823 on ca_sc.linkage_instance_id = lac.linkage_instance_id
3824 and ca_sc.schedule_on = lac.schedule_on
3825 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3826 on lac.assignment_limit_id = alst.assignment_limit_id
3827 and ca_sc.staff_type_id = alst.staff_type_id
3828 left join buffer_staff_assignments_count_consecutive_1621795380 as sac
3829 on lac.assignment_limit_id = sac.assignment_limit_id
3830 and ca_sc.staff_id = sac.staff_id
3831 and lac.schedule_on = sac.schedule_on
3832 and lac.start_date = sac.start_date
3833 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
3834 order by null
3835 ) as lac
3836 on ca.linkage_instance_id = lac.linkage_instance_id
3837 and ca.staff_id = lac.staff_id
3838 inner join assignment_limits as al
3839 on lac.assignment_limit_id = al.id
3840 left join (
3841 select assignment_limit_id, staff_id, start_date,
3842 count(schedule_on) as assignments_count
3843 from buffer_staff_assignments_count_consecutive_1621795380
3844 group by assignment_limit_id, staff_id, start_date
3845 ) as sac
3846 on lac.assignment_limit_id = sac.assignment_limit_id
3847 and lac.staff_id = sac.staff_id
3848 and lac.start_date = sac.start_date
3849 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_consecutive_limit
3850
3851 (637.0ms) delete ca
3852 from buffer_combined_availabilities_1621795380 as ca
3853 inner join (
3854 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
3855 sum(lac.assignments_count) as assignments_count
3856 from (
3857 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3858 from buffer_combined_availabilities_1621795380 as ca
3859 inner join buffer_schedules_1621795380 as sc
3860 on ca.schedule_id = sc.id
3861 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3862 order by null
3863 ) as ca_sc
3864 inner join buffer_linkage_assignments_count_periods_1621795380 as lac
3865 on ca_sc.linkage_instance_id = lac.linkage_instance_id
3866 and ca_sc.schedule_on = lac.schedule_on
3867 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3868 on lac.assignment_limit_id = alst.assignment_limit_id
3869 and ca_sc.staff_type_id = alst.staff_type_id
3870 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
3871 order by null
3872 ) as lac
3873 on ca.linkage_instance_id = lac.linkage_instance_id
3874 and ca.staff_id = lac.staff_id
3875 inner join assignment_limits as al
3876 on lac.assignment_limit_id = al.id
3877 left join buffer_staff_assignments_count_periods_1621795380 as sac
3878 on lac.assignment_limit_id = sac.assignment_limit_id
3879 and lac.staff_id = sac.staff_id
3880 and lac.start_date = sac.start_date
3881 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_per_period_limit
3882
3883 (138.8ms) delete ca
3884 from buffer_combined_availabilities_1621795380 as ca
3885 inner join (
3886 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
3887 sum(lac.assignments_count) as assignments_count
3888 from (
3889 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3890 from buffer_combined_availabilities_1621795380 as ca
3891 inner join buffer_schedules_1621795380 as sc
3892 on ca.schedule_id = sc.id
3893 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
3894 order by null
3895 ) as ca_sc
3896 inner join buffer_linkage_assignments_count_rolling_1621795380 as lac
3897 on ca_sc.linkage_instance_id = lac.linkage_instance_id
3898 and ca_sc.schedule_on = lac.schedule_on
3899 inner join buffer_assignment_limit_staff_types_1621795380 as alst
3900 on lac.assignment_limit_id = alst.assignment_limit_id
3901 and ca_sc.staff_type_id = alst.staff_type_id
3902 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
3903 order by null
3904 ) as lac
3905 on ca.linkage_instance_id = lac.linkage_instance_id
3906 and ca.staff_id = lac.staff_id
3907 inner join assignment_limits as al
3908 on lac.assignment_limit_id = al.id
3909 left join buffer_staff_assignments_count_rolling_1621795380 as sac
3910 on lac.assignment_limit_id = sac.assignment_limit_id
3911 and lac.staff_id = sac.staff_id
3912 and lac.start_date = sac.start_date
3913 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_rolling_limit
3914
3915 (3140.1ms) /* NegativeLinkRule */
3916 delete ca
3917 from buffer_combined_availabilities_1621795380 as ca use index (ix_buffer_combined_availabilities_composite_1)
3918 inner join buffer_negative_relations_1621795380 as nr use index (ix_buffer_negative_relations_composite_1)
3919 on ca.schedule_id = nr.schedule_id
3920 and ca.staff_id = nr.staff_id
3921
3922 (142.2ms) /* SpecializationOverlapRule */
3923 delete ca
3924 from buffer_combined_availabilities_1621795380 as ca use index (ix_buffer_combined_availabilities_composite_1)
3925 inner join buffer_schedules_1621795380 as sc
3926 on ca.schedule_id = sc.id
3927 inner join buffer_staff_specializations_1621795380 as ssp
3928 on ca.staff_id = ssp.staff_id
3929 inner join max_applicable_call_types as mact
3930 on ssp.specialization_id = mact.specialization_id
3931 and sc.call_type_id = mact.call_type_id
3932 inner join buffer_specialization_daily_counts_1621795380 as sdc use index (ix_buffer_specialization_daily_counts_composite_1)
3933 on ssp.specialization_id = sdc.specialization_id
3934 and sc.schedule_on = sdc.schedule_on
3935 and sdc.staff_id is null
3936 left join buffer_specialization_daily_counts_1621795380 as sdc_2 use index (ix_buffer_specialization_daily_counts_composite_1)
3937 on ssp.specialization_id = sdc_2.specialization_id
3938 and sc.schedule_on = sdc_2.schedule_on
3939 and ca.staff_id = sdc_2.staff_id
3940 where sdc.should_be_evaluated = 1
3941 and (sdc.staffs_scheduled + if(sdc_2.id is null, 1, 0)) > sdc.max_scheduled
3942
3943 (142.5ms) /* BrokenLinkageRule */
3944 truncate table buffer_combined_availability_linkages_1621795380
3945
3946 (199.0ms) insert into buffer_combined_availability_linkages_1621795380 (
3947 staff_id,
3948 linkage_instance_id,
3949 slots_count,
3950 is_primary,
3951 has_violations
3952 )
3953 select
3954 staff_id,
3955 linkage_instance_id,
3956 count(1) as slots_count,
3957 min(is_primary) as is_primary,
3958 max(has_violations) as has_violations
3959 from buffer_combined_availabilities_1621795380 use index (ix_buffer_combined_availabilities_composite_2)
3960 group by
3961 staff_id,
3962 linkage_instance_id
3963 order by null
3964
3965 (3300.4ms) delete ca
3966 from
3967 buffer_combined_availabilities_1621795380 as ca use index (ix_buffer_combined_availabilities_composite_1)
3968 inner join buffer_schedules_1621795380 as sc
3969 on ca.schedule_id = sc.id
3970 inner join buffer_linkages_1621795380 as l
3971 on sc.linkage_instance_id = l.linkage_instance_id
3972 inner join buffer_combined_availability_linkages_1621795380 as ls_1 use index (ix_buffer_combined_availability_linkages_composite_1)
3973 on ca.staff_id = ls_1.staff_id
3974 and sc.linkage_instance_id = ls_1.linkage_instance_id
3975 left join buffer_schedule_linkages_1621795380 as ls_2 use index (ix_buffer_schedule_linkages_composite_1)
3976 on ca.staff_id = ls_2.staff_id
3977 and sc.linkage_instance_id = ls_2.linkage_instance_id
3978 where (ls_1.slots_count + coalesce(ls_2.slots_count, 0)) < l.slots_count_total /* not covering the whole chain */;
3979
3980INFO : (05-17 07:44:02) --> fill: 45 - Scheduler::AutoPopulate::Queries::QueryScore02
3981 (12400.2ms) insert into buffer_min_distances_1621795380 (
3982 schedule_id, staff_id, rule_name, min_distance_in_days
3983 )
3984 select b_schedules.id as schedule_id, availabilities.staff_id, 'CallDaysRule' as rule_name,
3985 min(abs(datediff(b_schedules.schedule_on, schedules.schedule_on))) as min_distance_in_days
3986 from buffer_schedules_1621795380 as b_schedules
3987 inner join buffer_combined_availabilities_1621795380 as availabilities
3988 on b_schedules.id = availabilities.schedule_id
3989 inner join schedules
3990 on availabilities.staff_id = schedules.staff_id
3991 and b_schedules.day_of_week_mask = (1 << (dayofweek(schedules.schedule_on) - 1))
3992 left join buffer_schedules_1621795380 as b_schedules_2
3993 on schedules.schedule_on = b_schedules_2.schedule_on
3994 and schedules.call_type_id = b_schedules_2.call_type_id
3995 and b_schedules.linkage_instance_id = b_schedules_2.linkage_instance_id
3996 where b_schedules_2.id is null
3997 group by b_schedules.id, availabilities.staff_id, rule_name
3998 order by null
3999
4000INFO : (05-17 07:44:15) --> fill: 46 - Scheduler::AutoPopulate::Queries::QueryScore03
4001 (397.9ms) insert into buffer_rule_calc_schedules_1621795380 (
4002 call_type_id, staff_id, schedule_on, day_of_week_mask
4003 )
4004 select schedules.call_type_id, schedules.staff_id,
4005 schedules.schedule_on, (1 << (dayofweek(schedules.schedule_on) - 1)) as day_of_week_mask
4006 from buffer_min_distances_1621795380 as min_distances
4007 inner join buffer_schedules_1621795380 as b_schedules
4008 on min_distances.schedule_id = b_schedules.id
4009 inner join schedules
4010 on min_distances.staff_id = schedules.staff_id
4011 and date_add(b_schedules.schedule_on, interval min_distances.min_distance_in_days day) = schedules.schedule_on
4012 where min_distances.rule_name in ('CallDaysRule')
4013 group by schedules.call_type_id, schedules.staff_id,
4014 schedules.schedule_on, (1 << (dayofweek(schedules.schedule_on) - 1))
4015 order by null
4016
4017 (413.3ms) insert into buffer_rule_calc_schedules_1621795380 (
4018 call_type_id, staff_id, schedule_on, day_of_week_mask
4019 )
4020 select schedules.call_type_id, schedules.staff_id,
4021 schedules.schedule_on, (1 << (dayofweek(schedules.schedule_on) - 1)) as day_of_week_mask
4022 from buffer_min_distances_1621795380 as min_distances
4023 inner join buffer_schedules_1621795380 as b_schedules
4024 on min_distances.schedule_id = b_schedules.id
4025 inner join schedules
4026 on min_distances.staff_id = schedules.staff_id
4027 and date_add(b_schedules.schedule_on, interval -min_distances.min_distance_in_days day) = schedules.schedule_on
4028 where min_distances.rule_name in ('CallDaysRule')
4029 group by schedules.call_type_id, schedules.staff_id,
4030 schedules.schedule_on, (1 << (dayofweek(schedules.schedule_on) - 1))
4031 order by null
4032
4033INFO : (05-17 07:44:15) --> fill: 47 - Scheduler::AutoPopulate::Queries::QueryScore04
4034INFO : (05-17 07:44:15) --> fill: 48 - Scheduler::AutoPopulate::Queries::Query11
4035 (140.4ms) update buffer_schedules_1621795380 as sc
4036 left join buffer_combined_availabilities_1621795380 as ca
4037 on sc.id = ca.schedule_id
4038 set sc.should_be_evaluated = 0,
4039 sc.should_be_populated = 0
4040 where sc.should_be_evaluated = 1
4041 and ca.id is null
4042
4043INFO : (05-17 07:44:15) --> fill: 49 - Scheduler::AutoPopulate::Queries::DropTables
4044INFO : (05-17 07:44:53) Setting up lists...
4045 (606.8ms) select b_schedules.schedule_on, b_schedules.call_type_id, b_schedules.linkage_instance_id, schedules.id as schedule_id
4046 from buffer_schedules_1621795380 as b_schedules
4047 left join schedules
4048 on schedules.client_id = 261
4049 and schedules.call_type_id = b_schedules.call_type_id
4050 and schedules.schedule_on = b_schedules.schedule_on
4051 where b_schedules.linkage_instance_id != -1
4052 order by b_schedules.linkage_instance_id, b_schedules.schedule_on
4053
4054INFO : (05-17 07:44:54) Begin to populate. Pre-set: 27. Unscheduled: 589.
4055INFO : (05-17 07:44:54) plan unit: [id:201821] [2018-06-02 - BW2 AM], [2018-06-03 - BW1 AM]
4056INFO : (05-17 07:44:54) plan unit: [id:201822] [2018-06-09 - BW2 AM], [2018-06-10 - BW1 AM]
4057INFO : (05-17 07:44:54) plan unit: [id:201823] [2018-06-16 - BW2 AM], [2018-06-17 - BW1 AM]
4058INFO : (05-17 07:44:54) plan unit: [id:201824] [2018-06-23 - BW2 AM], [2018-06-24 - BW1 AM]
4059INFO : (05-17 07:44:54) plan unit: [id:201826] [2018-07-07 - BW2 AM], [2018-07-08 - BW1 AM]
4060INFO : (05-17 07:44:54) plan unit: [id:201827] [2018-07-14 - BW2 AM], [2018-07-15 - BW1 AM]
4061INFO : (05-17 07:44:54) plan unit: [id:201828] [2018-07-21 - BW2 AM], [2018-07-22 - BW1 AM]
4062INFO : (05-17 07:44:54) plan unit: [id:201829] [2018-07-28 - BW2 AM], [2018-07-29 - BW1 AM]
4063INFO : (05-17 07:44:54) plan unit: [id:201830] [2018-08-04 - BW2 AM], [2018-08-05 - BW1 AM]
4064INFO : (05-17 07:44:54) plan unit: [id:201831] [2018-08-11 - BW2 AM], [2018-08-12 - BW1 AM]
4065INFO : (05-17 07:44:54) plan unit: [id:201832] [2018-08-18 - BW2 AM], [2018-08-19 - BW1 AM]
4066INFO : (05-17 07:44:54) plan unit: [id:201833] [2018-08-25 - BW2 AM], [2018-08-26 - BW1 AM]
4067INFO : (05-17 07:44:54) plan unit: [id:1201821] [2018-06-01 - BW Day (6)], [2018-06-01 - BUC], [2018-06-02 - BW3 PM], [2018-06-03 - BW1 PM], [2018-06-04 - PCBW]
4068INFO : (05-17 07:44:54) plan unit: [id:1201822] [2018-06-08 - BUC], [2018-06-08 - BW Day (6)], [2018-06-09 - BW3 PM], [2018-06-10 - BW1 PM], [2018-06-11 - PCBW]
4069INFO : (05-17 07:44:54) plan unit: [id:1201823] [2018-06-15 - BUC], [2018-06-15 - BW Day (6)], [2018-06-16 - BW3 PM], [2018-06-17 - BW1 PM], [2018-06-18 - PCBW]
4070INFO : (05-17 07:44:54) plan unit: [id:1201824] [2018-06-22 - BW Day (6)], [2018-06-22 - BUC], [2018-06-23 - BW3 PM], [2018-06-24 - BW1 PM], [2018-06-25 - PCBW]
4071INFO : (05-17 07:44:54) plan unit: [id:1201825] [2018-06-29 - BW Day (6)], [2018-06-29 - BUC], [2018-06-30 - BW3 PM], [2018-07-01 - BW1 PM], [2018-07-02 - PCBW]
4072INFO : (05-17 07:44:54) plan unit: [id:1201826] [2018-07-06 - BW Day (6)], [2018-07-06 - BUC], [2018-07-07 - BW3 PM], [2018-07-08 - BW1 PM], [2018-07-09 - PCBW]
4073INFO : (05-17 07:44:54) plan unit: [id:1201827] [2018-07-13 - BW Day (6)], [2018-07-13 - BUC], [2018-07-14 - BW3 PM], [2018-07-15 - BW1 PM], [2018-07-16 - PCBW]
4074INFO : (05-17 07:44:54) plan unit: [id:1201828] [2018-07-20 - BUC], [2018-07-20 - BW Day (6)], [2018-07-21 - BW3 PM], [2018-07-22 - BW1 PM], [2018-07-23 - PCBW]
4075INFO : (05-17 07:44:54) plan unit: [id:1201829] [2018-07-27 - BUC], [2018-07-27 - BW Day (6)], [2018-07-28 - BW3 PM], [2018-07-29 - BW1 PM], [2018-07-30 - PCBW]
4076INFO : (05-17 07:44:54) plan unit: [id:1201830] [2018-08-03 - BW Day (6)], [2018-08-03 - BUC], [2018-08-04 - BW3 PM], [2018-08-05 - BW1 PM], [2018-08-06 - PCBW]
4077INFO : (05-17 07:44:54) plan unit: [id:1201831] [2018-08-10 - BW Day (6)], [2018-08-10 - BUC], [2018-08-11 - BW3 PM], [2018-08-12 - BW1 PM], [2018-08-13 - PCBW]
4078INFO : (05-17 07:44:54) plan unit: [id:1201832] [2018-08-17 - BW Day (6)], [2018-08-17 - BUC], [2018-08-18 - BW3 PM], [2018-08-19 - BW1 PM], [2018-08-20 - PCBW]
4079INFO : (05-17 07:44:54) plan unit: [id:1201833] [2018-08-24 - BW Day (6)], [2018-08-24 - BUC], [2018-08-25 - BW3 PM], [2018-08-26 - BW1 PM], [2018-08-27 - PCBW]
4080INFO : (05-17 07:44:54) plan unit: [id:1201834] [2018-08-31 - BUC], [2018-08-31 - BW Day (6)], [2018-09-01 - BW3 PM], [2018-09-02 - BW1 PM], [2018-09-03 - PCBW]
4081INFO : (05-17 07:44:54) plan unit: [id:2201821] [2018-06-01 - BW4], [2018-06-01 - BW Day (4)], [2018-06-02 - BW3 AM], [2018-06-03 - BW4 AM], [2018-06-03 - BUC]
4082INFO : (05-17 07:44:54) plan unit: [id:2201822] [2018-06-08 - BW4], [2018-06-08 - BW Day (4)], [2018-06-09 - BW3 AM], [2018-06-10 - BUC], [2018-06-10 - BW4 AM]
4083INFO : (05-17 07:44:54) plan unit: [id:2201823] [2018-06-15 - BW Day (4)], [2018-06-15 - BW4], [2018-06-16 - BW3 AM], [2018-06-17 - BUC], [2018-06-17 - BW4 AM]
4084INFO : (05-17 07:44:54) plan unit: [id:2201824] [2018-06-22 - BW Day (4)], [2018-06-22 - BW4], [2018-06-23 - BW3 AM], [2018-06-24 - BW4 AM], [2018-06-24 - BUC]
4085INFO : (05-17 07:44:54) plan unit: [id:2201825] [2018-06-29 - BW Day (4)], [2018-06-29 - BW4], [2018-06-30 - BW3 AM], [2018-07-01 - BW4 AM], [2018-07-01 - BUC]
4086INFO : (05-17 07:44:54) plan unit: [id:2201826] [2018-07-06 - BW Day (4)], [2018-07-06 - BW4], [2018-07-07 - BW3 AM], [2018-07-08 - BW4 AM], [2018-07-08 - BUC]
4087INFO : (05-17 07:44:54) plan unit: [id:2201827] [2018-07-13 - BW4], [2018-07-13 - BW Day (4)], [2018-07-14 - BW3 AM], [2018-07-15 - BW4 AM], [2018-07-15 - BUC]
4088INFO : (05-17 07:44:54) plan unit: [id:2201828] [2018-07-20 - BW4], [2018-07-20 - BW Day (4)], [2018-07-21 - BW3 AM], [2018-07-22 - BW4 AM], [2018-07-22 - BUC]
4089INFO : (05-17 07:44:54) plan unit: [id:2201829] [2018-07-27 - BW Day (4)], [2018-07-27 - BW4], [2018-07-28 - BW3 AM], [2018-07-29 - BUC], [2018-07-29 - BW4 AM]
4090INFO : (05-17 07:44:54) plan unit: [id:2201830] [2018-08-03 - BW Day (4)], [2018-08-03 - BW4], [2018-08-04 - BW3 AM], [2018-08-05 - BUC], [2018-08-05 - BW4 AM]
4091INFO : (05-17 07:44:54) plan unit: [id:2201831] [2018-08-10 - BW Day (4)], [2018-08-10 - BW4], [2018-08-11 - BW3 AM], [2018-08-12 - BW4 AM], [2018-08-12 - BUC]
4092INFO : (05-17 07:44:54) plan unit: [id:2201832] [2018-08-17 - BW Day (4)], [2018-08-17 - BW4], [2018-08-18 - BW3 AM], [2018-08-19 - BW4 AM], [2018-08-19 - BUC]
4093INFO : (05-17 07:44:54) plan unit: [id:2201833] [2018-08-24 - BW Day (4)], [2018-08-24 - BW4], [2018-08-25 - BW3 AM], [2018-08-26 - BW4 AM], [2018-08-26 - BUC]
4094INFO : (05-17 07:44:54) plan unit: [id:2201834] [2018-08-31 - BW4], [2018-08-31 - BW Day (4)], [2018-09-01 - BW3 AM], [2018-09-02 - BW4 AM], [2018-09-02 - BUC]
4095INFO : (05-17 07:44:54) plan unit: [id:3201821] [2018-06-02 - BW1 AM], [2018-06-03 - BW2 AM]
4096INFO : (05-17 07:44:54) plan unit: [id:3201822] [2018-06-09 - BW1 AM], [2018-06-10 - BW2 AM]
4097INFO : (05-17 07:44:54) plan unit: [id:3201823] [2018-06-16 - BW1 AM], [2018-06-17 - BW2 AM]
4098INFO : (05-17 07:44:54) plan unit: [id:3201824] [2018-06-23 - BW1 AM], [2018-06-24 - BW2 AM]
4099INFO : (05-17 07:44:54) plan unit: [id:3201826] [2018-07-07 - BW1 AM], [2018-07-08 - BW2 AM]
4100INFO : (05-17 07:44:54) plan unit: [id:3201827] [2018-07-14 - BW1 AM], [2018-07-15 - BW2 AM]
4101INFO : (05-17 07:44:54) plan unit: [id:3201828] [2018-07-21 - BW1 AM], [2018-07-22 - BW2 AM]
4102INFO : (05-17 07:44:54) plan unit: [id:3201829] [2018-07-28 - BW1 AM], [2018-07-29 - BW2 AM]
4103INFO : (05-17 07:44:54) plan unit: [id:3201830] [2018-08-04 - BW1 AM], [2018-08-05 - BW2 AM]
4104INFO : (05-17 07:44:54) plan unit: [id:3201831] [2018-08-11 - BW1 AM], [2018-08-12 - BW2 AM]
4105INFO : (05-17 07:44:54) plan unit: [id:3201832] [2018-08-18 - BW1 AM], [2018-08-19 - BW2 AM]
4106INFO : (05-17 07:44:54) plan unit: [id:3201833] [2018-08-25 - BW1 AM], [2018-08-26 - BW2 AM]
4107INFO : (05-17 07:44:54) plan unit: [id:4201821] [2018-06-01 - BW Day (3)], [2018-06-01 - BW3], [2018-06-02 - OBC PM], [2018-06-03 - BW2 PM]
4108INFO : (05-17 07:44:54) plan unit: [id:4201822] [2018-06-08 - BW Day (3)], [2018-06-08 - BW3], [2018-06-09 - OBC PM], [2018-06-10 - BW2 PM]
4109INFO : (05-17 07:44:54) plan unit: [id:4201823] [2018-06-15 - BW Day (3)], [2018-06-15 - BW3], [2018-06-16 - OBC PM], [2018-06-17 - BW2 PM]
4110INFO : (05-17 07:44:54) plan unit: [id:4201824] [2018-06-22 - BW3], [2018-06-22 - BW Day (3)], [2018-06-23 - OBC PM], [2018-06-24 - BW2 PM]
4111INFO : (05-17 07:44:54) plan unit: [id:4201825] [2018-06-29 - BW3], [2018-06-29 - BW Day (3)], [2018-06-30 - OBC PM], [2018-07-01 - BW2 PM]
4112INFO : (05-17 07:44:54) plan unit: [id:4201826] [2018-07-06 - BW Day (3)], [2018-07-06 - BW3], [2018-07-07 - OBC PM], [2018-07-08 - BW2 PM]
4113INFO : (05-17 07:44:54) plan unit: [id:4201827] [2018-07-13 - BW Day (3)], [2018-07-13 - BW3], [2018-07-14 - OBC PM], [2018-07-15 - BW2 PM]
4114INFO : (05-17 07:44:54) plan unit: [id:4201828] [2018-07-20 - BW Day (3)], [2018-07-20 - BW3], [2018-07-21 - OBC PM], [2018-07-22 - BW2 PM]
4115INFO : (05-17 07:44:54) plan unit: [id:4201829] [2018-07-27 - BW Day (3)], [2018-07-27 - BW3], [2018-07-28 - OBC PM], [2018-07-29 - BW2 PM]
4116INFO : (05-17 07:44:54) plan unit: [id:4201830] [2018-08-03 - BW Day (3)], [2018-08-03 - BW3], [2018-08-04 - OBC PM], [2018-08-05 - BW2 PM]
4117INFO : (05-17 07:44:54) plan unit: [id:4201831] [2018-08-10 - BW3], [2018-08-10 - BW Day (3)], [2018-08-11 - OBC PM], [2018-08-12 - BW2 PM]
4118INFO : (05-17 07:44:54) plan unit: [id:4201832] [2018-08-17 - BW3], [2018-08-17 - BW Day (3)], [2018-08-18 - OBC PM], [2018-08-19 - BW2 PM]
4119INFO : (05-17 07:44:54) plan unit: [id:4201833] [2018-08-24 - BW Day (3)], [2018-08-24 - BW3], [2018-08-25 - OBC PM], [2018-08-26 - BW2 PM]
4120INFO : (05-17 07:44:54) plan unit: [id:4201834] [2018-08-31 - BW Day (3)], [2018-08-31 - BW3], [2018-09-01 - OBC PM], [2018-09-02 - BW2 PM]
4121INFO : (05-17 07:44:54) plan unit: [id:5201821] [2018-06-01 - OB2], [2018-06-02 - OBC AM], [2018-06-03 - BW3 AM]
4122INFO : (05-17 07:44:54) plan unit: [id:5201822] [2018-06-08 - OB2], [2018-06-09 - OBC AM], [2018-06-10 - BW3 AM]
4123INFO : (05-17 07:44:54) plan unit: [id:5201823] [2018-06-15 - OB2], [2018-06-16 - OBC AM], [2018-06-17 - BW3 AM]
4124INFO : (05-17 07:44:54) plan unit: [id:5201824] [2018-06-22 - OB2], [2018-06-23 - OBC AM], [2018-06-24 - BW3 AM]
4125INFO : (05-17 07:44:54) plan unit: [id:5201826] [2018-07-06 - OB2], [2018-07-07 - OBC AM], [2018-07-08 - BW3 AM]
4126INFO : (05-17 07:44:54) plan unit: [id:5201827] [2018-07-13 - OB2], [2018-07-14 - OBC AM], [2018-07-15 - BW3 AM]
4127INFO : (05-17 07:44:54) plan unit: [id:5201828] [2018-07-20 - OB2], [2018-07-21 - OBC AM], [2018-07-22 - BW3 AM]
4128INFO : (05-17 07:44:54) plan unit: [id:5201829] [2018-07-27 - OB2], [2018-07-28 - OBC AM], [2018-07-29 - BW3 AM]
4129INFO : (05-17 07:44:54) plan unit: [id:5201830] [2018-08-03 - OB2], [2018-08-04 - OBC AM], [2018-08-05 - BW3 AM]
4130INFO : (05-17 07:44:54) plan unit: [id:5201831] [2018-08-10 - OB2], [2018-08-11 - OBC AM], [2018-08-12 - BW3 AM]
4131INFO : (05-17 07:44:54) plan unit: [id:5201832] [2018-08-17 - OB2], [2018-08-18 - OBC AM], [2018-08-19 - BW3 AM]
4132INFO : (05-17 07:44:54) plan unit: [id:5201833] [2018-08-24 - OB2], [2018-08-25 - OBC AM], [2018-08-26 - BW3 AM]
4133INFO : (05-17 07:44:54) plan unit: [id:6201821] [2018-06-01 - BW1], [2018-06-02 - BW2 PM], [2018-06-03 - BW3 PM]
4134INFO : (05-17 07:44:54) plan unit: [id:6201822] [2018-06-08 - BW1], [2018-06-09 - BW2 PM], [2018-06-10 - BW3 PM]
4135INFO : (05-17 07:44:54) plan unit: [id:6201823] [2018-06-15 - BW1], [2018-06-16 - BW2 PM], [2018-06-17 - BW3 PM]
4136INFO : (05-17 07:44:54) plan unit: [id:6201824] [2018-06-22 - BW1], [2018-06-23 - BW2 PM], [2018-06-24 - BW3 PM]
4137INFO : (05-17 07:44:54) plan unit: [id:6201826] [2018-07-06 - BW1], [2018-07-07 - BW2 PM], [2018-07-08 - BW3 PM]
4138INFO : (05-17 07:44:54) plan unit: [id:6201827] [2018-07-13 - BW1], [2018-07-14 - BW2 PM], [2018-07-15 - BW3 PM]
4139INFO : (05-17 07:44:54) plan unit: [id:6201828] [2018-07-20 - BW1], [2018-07-21 - BW2 PM], [2018-07-22 - BW3 PM]
4140INFO : (05-17 07:44:54) plan unit: [id:6201829] [2018-07-27 - BW1], [2018-07-28 - BW2 PM], [2018-07-29 - BW3 PM]
4141INFO : (05-17 07:44:54) plan unit: [id:6201830] [2018-08-03 - BW1], [2018-08-04 - BW2 PM], [2018-08-05 - BW3 PM]
4142INFO : (05-17 07:44:54) plan unit: [id:6201831] [2018-08-10 - BW1], [2018-08-11 - BW2 PM], [2018-08-12 - BW3 PM]
4143INFO : (05-17 07:44:54) plan unit: [id:6201832] [2018-08-17 - BW1], [2018-08-18 - BW2 PM], [2018-08-19 - BW3 PM]
4144INFO : (05-17 07:44:54) plan unit: [id:6201833] [2018-08-24 - BW1], [2018-08-25 - BW2 PM], [2018-08-26 - BW3 PM]
4145INFO : (05-17 07:44:54) plan unit: [id:7201821] [2018-06-01 - BW Day (2)], [2018-06-01 - BW2], [2018-06-02 - BW1 PM], [2018-06-03 - BW4 PM]
4146INFO : (05-17 07:44:54) plan unit: [id:7201822] [2018-06-08 - BW2], [2018-06-08 - BW Day (2)], [2018-06-09 - BW1 PM], [2018-06-10 - BW4 PM]
4147INFO : (05-17 07:44:54) plan unit: [id:7201823] [2018-06-15 - BW2], [2018-06-15 - BW Day (2)], [2018-06-16 - BW1 PM], [2018-06-17 - BW4 PM]
4148INFO : (05-17 07:44:54) plan unit: [id:7201824] [2018-06-22 - BW Day (2)], [2018-06-22 - BW2], [2018-06-23 - BW1 PM], [2018-06-24 - BW4 PM]
4149INFO : (05-17 07:44:54) plan unit: [id:7201825] [2018-06-29 - BW Day (2)], [2018-06-29 - BW2], [2018-06-30 - BW1 PM], [2018-07-01 - BW4 PM]
4150INFO : (05-17 07:44:54) plan unit: [id:7201826] [2018-07-06 - BW Day (2)], [2018-07-06 - BW2], [2018-07-07 - BW1 PM], [2018-07-08 - BW4 PM]
4151INFO : (05-17 07:44:54) plan unit: [id:7201827] [2018-07-13 - BW Day (2)], [2018-07-13 - BW2], [2018-07-14 - BW1 PM], [2018-07-15 - BW4 PM]
4152INFO : (05-17 07:44:54) plan unit: [id:7201828] [2018-07-20 - BW2], [2018-07-20 - BW Day (2)], [2018-07-21 - BW1 PM], [2018-07-22 - BW4 PM]
4153INFO : (05-17 07:44:54) plan unit: [id:7201829] [2018-07-27 - BW2], [2018-07-27 - BW Day (2)], [2018-07-28 - BW1 PM], [2018-07-29 - BW4 PM]
4154INFO : (05-17 07:44:54) plan unit: [id:7201830] [2018-08-03 - BW2], [2018-08-03 - BW Day (2)], [2018-08-04 - BW1 PM], [2018-08-05 - BW4 PM]
4155INFO : (05-17 07:44:54) plan unit: [id:7201831] [2018-08-10 - BW Day (2)], [2018-08-10 - BW2], [2018-08-11 - BW1 PM], [2018-08-12 - BW4 PM]
4156INFO : (05-17 07:44:54) plan unit: [id:7201832] [2018-08-17 - BW Day (2)], [2018-08-17 - BW2], [2018-08-18 - BW1 PM], [2018-08-19 - BW4 PM]
4157INFO : (05-17 07:44:54) plan unit: [id:7201833] [2018-08-24 - BW Day (2)], [2018-08-24 - BW2], [2018-08-25 - BW1 PM], [2018-08-26 - BW4 PM]
4158INFO : (05-17 07:44:54) plan unit: [id:7201834] [2018-08-31 - BW Day (2)], [2018-08-31 - BW2], [2018-09-01 - BW1 PM], [2018-09-02 - BW4 PM]
4159INFO : (05-17 07:44:54) plan unit: [id:8201821] [2018-06-01 - BW5], [2018-06-01 - BW Day (5)], [2018-06-02 - CV AM], [2018-06-02 - BW5 AM], [2018-06-03 - BW5 AM], [2018-06-03 - CV AM]
4160INFO : (05-17 07:44:54) plan unit: [id:8201822] [2018-06-08 - BW5], [2018-06-08 - BW Day (5)], [2018-06-09 - CV AM], [2018-06-09 - BW5 AM], [2018-06-10 - BW5 AM], [2018-06-10 - CV AM]
4161INFO : (05-17 07:44:54) plan unit: [id:8201823] [2018-06-15 - BW Day (5)], [2018-06-15 - BW5], [2018-06-16 - BW5 AM], [2018-06-16 - CV AM], [2018-06-17 - BW5 AM], [2018-06-17 - CV AM]
4162INFO : (05-17 07:44:54) plan unit: [id:8201824] [2018-06-22 - BW5], [2018-06-22 - BW Day (5)], [2018-06-23 - BW5 AM], [2018-06-23 - CV AM], [2018-06-24 - BW5 AM], [2018-06-24 - CV AM]
4163INFO : (05-17 07:44:54) plan unit: [id:8201825] [2018-06-29 - BW5], [2018-06-29 - BW Day (5)], [2018-06-30 - BW5 AM], [2018-06-30 - CV AM], [2018-07-01 - CV AM], [2018-07-01 - BW5 AM]
4164INFO : (05-17 07:44:54) plan unit: [id:8201826] [2018-07-06 - BW5], [2018-07-06 - BW Day (5)], [2018-07-07 - CV AM], [2018-07-07 - BW5 AM], [2018-07-08 - CV AM], [2018-07-08 - BW5 AM]
4165INFO : (05-17 07:44:54) plan unit: [id:8201827] [2018-07-13 - BW5], [2018-07-13 - BW Day (5)], [2018-07-14 - CV AM], [2018-07-14 - BW5 AM], [2018-07-15 - CV AM], [2018-07-15 - BW5 AM]
4166INFO : (05-17 07:44:54) plan unit: [id:8201828] [2018-07-20 - BW5], [2018-07-20 - BW Day (5)], [2018-07-21 - CV AM], [2018-07-21 - BW5 AM], [2018-07-22 - BW5 AM], [2018-07-22 - CV AM]
4167INFO : (05-17 07:44:54) plan unit: [id:8201829] [2018-07-27 - BW5], [2018-07-27 - BW Day (5)], [2018-07-28 - BW5 AM], [2018-07-28 - CV AM], [2018-07-29 - BW5 AM], [2018-07-29 - CV AM]
4168INFO : (05-17 07:44:54) plan unit: [id:8201830] [2018-08-03 - BW5], [2018-08-03 - BW Day (5)], [2018-08-04 - BW5 AM], [2018-08-04 - CV AM], [2018-08-05 - BW5 AM], [2018-08-05 - CV AM]
4169INFO : (05-17 07:44:54) plan unit: [id:8201831] [2018-08-10 - BW5], [2018-08-10 - BW Day (5)], [2018-08-11 - BW5 AM], [2018-08-11 - CV AM], [2018-08-12 - CV AM], [2018-08-12 - BW5 AM]
4170INFO : (05-17 07:44:54) plan unit: [id:8201832] [2018-08-17 - BW5], [2018-08-17 - BW Day (5)], [2018-08-18 - BW5 AM], [2018-08-18 - CV AM], [2018-08-19 - CV AM], [2018-08-19 - BW5 AM]
4171INFO : (05-17 07:44:54) plan unit: [id:8201833] [2018-08-24 - BW5], [2018-08-24 - BW Day (5)], [2018-08-25 - CV AM], [2018-08-25 - BW5 AM], [2018-08-26 - CV AM], [2018-08-26 - BW5 AM]
4172INFO : (05-17 07:44:54) plan unit: [id:8201834] [2018-08-31 - BW5], [2018-08-31 - BW Day (5)], [2018-09-01 - CV AM], [2018-09-01 - BW5 AM], [2018-09-02 - BW5 AM], [2018-09-02 - CV AM]
4173INFO : (05-17 07:44:54) plan unit: [id:9201821] [2018-06-01 - CV], [2018-06-01 - BW Card Day], [2018-06-02 - BW4 PM], [2018-06-02 - CV PM], [2018-06-03 - CV PM], [2018-06-04 - BW Day], [2018-06-04 - PCCV]
4174INFO : (05-17 07:44:54) plan unit: [id:9201822] [2018-06-08 - BW Card Day], [2018-06-08 - CV], [2018-06-09 - BW4 PM], [2018-06-09 - CV PM], [2018-06-10 - CV PM], [2018-06-11 - BW Day], [2018-06-11 - PCCV]
4175INFO : (05-17 07:44:54) plan unit: [id:9201823] [2018-06-15 - BW Card Day], [2018-06-15 - CV], [2018-06-16 - BW4 PM], [2018-06-16 - CV PM], [2018-06-17 - CV PM], [2018-06-18 - BW Day], [2018-06-18 - PCCV]
4176INFO : (05-17 07:44:54) plan unit: [id:9201824] [2018-06-22 - BW Card Day], [2018-06-22 - CV], [2018-06-23 - BW4 PM], [2018-06-23 - CV PM], [2018-06-24 - CV PM], [2018-06-25 - BW Day], [2018-06-25 - PCCV]
4177INFO : (05-17 07:44:54) plan unit: [id:9201825] [2018-06-29 - BW Card Day], [2018-06-29 - CV], [2018-06-30 - CV PM], [2018-06-30 - BW4 PM], [2018-07-01 - CV PM], [2018-07-02 - PCCV], [2018-07-02 - BW Day]
4178INFO : (05-17 07:44:54) plan unit: [id:9201826] [2018-07-06 - BW Card Day], [2018-07-06 - CV], [2018-07-07 - BW4 PM], [2018-07-07 - CV PM], [2018-07-08 - CV PM], [2018-07-09 - PCCV], [2018-07-09 - BW Day]
4179INFO : (05-17 07:44:54) plan unit: [id:9201827] [2018-07-13 - CV], [2018-07-13 - BW Card Day], [2018-07-14 - BW4 PM], [2018-07-14 - CV PM], [2018-07-15 - CV PM], [2018-07-16 - BW Day], [2018-07-16 - PCCV]
4180INFO : (05-17 07:44:54) plan unit: [id:9201828] [2018-07-20 - BW Card Day], [2018-07-20 - CV], [2018-07-21 - BW4 PM], [2018-07-21 - CV PM], [2018-07-22 - CV PM], [2018-07-23 - BW Day], [2018-07-23 - PCCV]
4181INFO : (05-17 07:44:54) plan unit: [id:9201829] [2018-07-27 - BW Card Day], [2018-07-27 - CV], [2018-07-28 - BW4 PM], [2018-07-28 - CV PM], [2018-07-29 - CV PM], [2018-07-30 - BW Day], [2018-07-30 - PCCV]
4182INFO : (05-17 07:44:54) plan unit: [id:9201830] [2018-08-03 - BW Card Day], [2018-08-03 - CV], [2018-08-04 - BW4 PM], [2018-08-04 - CV PM], [2018-08-05 - CV PM], [2018-08-06 - BW Day], [2018-08-06 - PCCV]
4183INFO : (05-17 07:44:54) plan unit: [id:9201831] [2018-08-10 - BW Card Day], [2018-08-10 - CV], [2018-08-11 - CV PM], [2018-08-11 - BW4 PM], [2018-08-12 - CV PM], [2018-08-13 - BW Day], [2018-08-13 - PCCV]
4184INFO : (05-17 07:44:54) plan unit: [id:9201832] [2018-08-17 - BW Card Day], [2018-08-17 - CV], [2018-08-18 - BW4 PM], [2018-08-18 - CV PM], [2018-08-19 - CV PM], [2018-08-20 - PCCV], [2018-08-20 - BW Day]
4185INFO : (05-17 07:44:54) plan unit: [id:9201833] [2018-08-24 - BW Card Day], [2018-08-24 - CV], [2018-08-25 - BW4 PM], [2018-08-25 - CV PM], [2018-08-26 - CV PM], [2018-08-27 - BW Day], [2018-08-27 - PCCV]
4186INFO : (05-17 07:44:54) plan unit: [id:9201834] [2018-08-31 - CV], [2018-08-31 - BW Card Day], [2018-09-01 - BW4 PM], [2018-09-01 - CV PM], [2018-09-02 - CV PM], [2018-09-03 - BW Day], [2018-09-03 - PCCV]
4187INFO : (05-17 07:44:54) plan unit: [id:10201821] [2018-06-01 - Transplant BU], [2018-06-01 - BW Card Day (2)], [2018-06-02 - Transplant BU], [2018-06-03 - Transplant BU]
4188INFO : (05-17 07:44:54) plan unit: [id:10201822] [2018-06-08 - Transplant BU], [2018-06-08 - BW Card Day (2)], [2018-06-09 - Transplant BU], [2018-06-10 - Transplant BU]
4189INFO : (05-17 07:44:54) plan unit: [id:10201823] [2018-06-15 - BW Card Day (2)], [2018-06-15 - Transplant BU], [2018-06-16 - Transplant BU], [2018-06-17 - Transplant BU]
4190INFO : (05-17 07:44:54) plan unit: [id:10201824] [2018-06-22 - BW Card Day (2)], [2018-06-22 - Transplant BU], [2018-06-23 - Transplant BU], [2018-06-24 - Transplant BU]
4191INFO : (05-17 07:44:54) plan unit: [id:10201826] [2018-07-06 - BW Card Day (2)], [2018-07-06 - Transplant BU], [2018-07-07 - Transplant BU], [2018-07-08 - Transplant BU]
4192INFO : (05-17 07:44:54) plan unit: [id:10201827] [2018-07-13 - Transplant BU], [2018-07-13 - BW Card Day (2)], [2018-07-14 - Transplant BU], [2018-07-15 - Transplant BU]
4193INFO : (05-17 07:44:54) plan unit: [id:10201828] [2018-07-20 - Transplant BU], [2018-07-20 - BW Card Day (2)], [2018-07-21 - Transplant BU], [2018-07-22 - Transplant BU]
4194INFO : (05-17 07:44:54) plan unit: [id:10201829] [2018-07-27 - BW Card Day (2)], [2018-07-27 - Transplant BU], [2018-07-28 - Transplant BU], [2018-07-29 - Transplant BU]
4195INFO : (05-17 07:44:54) plan unit: [id:10201830] [2018-08-03 - BW Card Day (2)], [2018-08-03 - Transplant BU], [2018-08-04 - Transplant BU], [2018-08-05 - Transplant BU]
4196INFO : (05-17 07:44:54) plan unit: [id:10201831] [2018-08-10 - BW Card Day (2)], [2018-08-10 - Transplant BU], [2018-08-11 - Transplant BU], [2018-08-12 - Transplant BU]
4197INFO : (05-17 07:44:54) plan unit: [id:10201832] [2018-08-17 - BW Card Day (2)], [2018-08-17 - Transplant BU], [2018-08-18 - Transplant BU], [2018-08-19 - Transplant BU]
4198INFO : (05-17 07:44:54) plan unit: [id:10201833] [2018-08-24 - BW Card Day (2)], [2018-08-24 - Transplant BU], [2018-08-25 - Transplant BU], [2018-08-26 - Transplant BU]
4199INFO : (05-17 07:44:54) plan unit: [id:11201821] [2018-06-01 - OBC], [2018-06-03 - OBC AM]
4200INFO : (05-17 07:44:54) plan unit: [id:11201822] [2018-06-08 - OBC], [2018-06-10 - OBC AM]
4201INFO : (05-17 07:44:54) plan unit: [id:11201823] [2018-06-15 - OBC], [2018-06-17 - OBC AM]
4202INFO : (05-17 07:44:54) plan unit: [id:11201824] [2018-06-22 - OBC], [2018-06-24 - OBC AM]
4203INFO : (05-17 07:44:54) plan unit: [id:11201826] [2018-07-06 - OBC], [2018-07-08 - OBC AM]
4204INFO : (05-17 07:44:54) plan unit: [id:11201827] [2018-07-13 - OBC], [2018-07-15 - OBC AM]
4205INFO : (05-17 07:44:54) plan unit: [id:11201828] [2018-07-20 - OBC], [2018-07-22 - OBC AM]
4206INFO : (05-17 07:44:54) plan unit: [id:11201829] [2018-07-27 - OBC], [2018-07-29 - OBC AM]
4207INFO : (05-17 07:44:54) plan unit: [id:11201830] [2018-08-03 - OBC], [2018-08-05 - OBC AM]
4208INFO : (05-17 07:44:54) plan unit: [id:11201831] [2018-08-10 - OBC], [2018-08-12 - OBC AM]
4209INFO : (05-17 07:44:54) plan unit: [id:11201832] [2018-08-17 - OBC], [2018-08-19 - OBC AM]
4210INFO : (05-17 07:44:54) plan unit: [id:11201833] [2018-08-24 - OBC], [2018-08-26 - OBC AM]
4211INFO : (05-17 07:44:54) plan unit: [id:12201821] [2018-06-02 - BUC], [2018-06-02 - BW4 AM], [2018-06-03 - OBC PM], [2018-06-04 - PCOB]
4212INFO : (05-17 07:44:54) plan unit: [id:12201822] [2018-06-09 - BUC], [2018-06-09 - BW4 AM], [2018-06-10 - OBC PM], [2018-06-11 - PCOB]
4213INFO : (05-17 07:44:54) plan unit: [id:12201823] [2018-06-16 - BUC], [2018-06-16 - BW4 AM], [2018-06-17 - OBC PM], [2018-06-18 - PCOB]
4214INFO : (05-17 07:44:54) plan unit: [id:12201824] [2018-06-23 - BUC], [2018-06-23 - BW4 AM], [2018-06-24 - OBC PM], [2018-06-25 - PCOB]
4215INFO : (05-17 07:44:54) plan unit: [id:12201825] [2018-06-30 - BW4 AM], [2018-06-30 - BUC], [2018-07-01 - OBC PM], [2018-07-02 - PCOB]
4216INFO : (05-17 07:44:54) plan unit: [id:12201826] [2018-07-07 - BUC], [2018-07-07 - BW4 AM], [2018-07-08 - OBC PM], [2018-07-09 - PCOB]
4217INFO : (05-17 07:44:54) plan unit: [id:12201827] [2018-07-14 - BUC], [2018-07-14 - BW4 AM], [2018-07-15 - OBC PM], [2018-07-16 - PCOB]
4218INFO : (05-17 07:44:54) plan unit: [id:12201828] [2018-07-21 - BUC], [2018-07-21 - BW4 AM], [2018-07-22 - OBC PM], [2018-07-23 - PCOB]
4219INFO : (05-17 07:44:54) plan unit: [id:12201829] [2018-07-28 - BUC], [2018-07-28 - BW4 AM], [2018-07-29 - OBC PM], [2018-07-30 - PCOB]
4220INFO : (05-17 07:44:54) plan unit: [id:12201830] [2018-08-04 - BUC], [2018-08-04 - BW4 AM], [2018-08-05 - OBC PM], [2018-08-06 - PCOB]
4221INFO : (05-17 07:44:54) plan unit: [id:12201831] [2018-08-11 - BW4 AM], [2018-08-11 - BUC], [2018-08-12 - OBC PM], [2018-08-13 - PCOB]
4222INFO : (05-17 07:44:54) plan unit: [id:12201832] [2018-08-18 - BW4 AM], [2018-08-18 - BUC], [2018-08-19 - OBC PM], [2018-08-20 - PCOB]
4223INFO : (05-17 07:44:54) plan unit: [id:12201833] [2018-08-25 - BUC], [2018-08-25 - BW4 AM], [2018-08-26 - OBC PM], [2018-08-27 - PCOB]
4224INFO : (05-17 07:44:54) plan unit: [id:12201834] [2018-09-01 - BUC], [2018-09-01 - BW4 AM], [2018-09-02 - OBC PM], [2018-09-03 - PCOB]
4225INFO : (05-17 07:44:54) plan unit: [id:13201821] [2018-05-31 - BWPeri], [2018-06-01 - BWPeri], [2018-06-02 - BWPeri], [2018-06-03 - BWPeri]
4226INFO : (05-17 07:44:54) plan unit: [id:13201822] [2018-06-07 - BWPeri], [2018-06-08 - BWPeri], [2018-06-09 - BWPeri], [2018-06-10 - BWPeri]
4227INFO : (05-17 07:44:54) plan unit: [id:13201823] [2018-06-14 - BWPeri], [2018-06-15 - BWPeri], [2018-06-16 - BWPeri], [2018-06-17 - BWPeri]
4228INFO : (05-17 07:44:54) plan unit: [id:13201824] [2018-06-21 - BWPeri], [2018-06-22 - BWPeri], [2018-06-23 - BWPeri], [2018-06-24 - BWPeri]
4229INFO : (05-17 07:44:54) plan unit: [id:13201826] [2018-07-05 - BWPeri], [2018-07-06 - BWPeri], [2018-07-07 - BWPeri], [2018-07-08 - BWPeri]
4230INFO : (05-17 07:44:54) plan unit: [id:13201827] [2018-07-12 - BWPeri], [2018-07-13 - BWPeri], [2018-07-14 - BWPeri], [2018-07-15 - BWPeri]
4231INFO : (05-17 07:44:54) plan unit: [id:13201828] [2018-07-19 - BWPeri], [2018-07-20 - BWPeri], [2018-07-21 - BWPeri], [2018-07-22 - BWPeri]
4232INFO : (05-17 07:44:54) plan unit: [id:13201829] [2018-07-26 - BWPeri], [2018-07-27 - BWPeri], [2018-07-28 - BWPeri], [2018-07-29 - BWPeri]
4233INFO : (05-17 07:44:54) plan unit: [id:13201830] [2018-08-02 - BWPeri], [2018-08-03 - BWPeri], [2018-08-04 - BWPeri], [2018-08-05 - BWPeri]
4234INFO : (05-17 07:44:54) plan unit: [id:13201831] [2018-08-09 - BWPeri], [2018-08-10 - BWPeri], [2018-08-11 - BWPeri], [2018-08-12 - BWPeri]
4235INFO : (05-17 07:44:54) plan unit: [id:13201832] [2018-08-16 - BWPeri], [2018-08-17 - BWPeri], [2018-08-18 - BWPeri], [2018-08-19 - BWPeri]
4236INFO : (05-17 07:44:54) plan unit: [id:13201833] [2018-08-23 - BWPeri], [2018-08-24 - BWPeri], [2018-08-25 - BWPeri], [2018-08-26 - BWPeri]
4237INFO : (05-17 07:44:54) plan unit: [id:14201821] [2018-06-01 - CHDay], [2018-06-01 - CHCall], [2018-06-02 - CHCall2], [2018-06-03 - CHCall], [2018-06-04 - CHDay 4]
4238INFO : (05-17 07:44:54) plan unit: [id:14201822] [2018-06-08 - CHCall], [2018-06-08 - CHDay], [2018-06-09 - CHCall2], [2018-06-10 - CHCall], [2018-06-11 - CHDay 4]
4239INFO : (05-17 07:44:54) plan unit: [id:14201823] [2018-06-15 - CHCall], [2018-06-15 - CHDay], [2018-06-16 - CHCall2], [2018-06-17 - CHCall], [2018-06-18 - CHDay 4]
4240INFO : (05-17 07:44:54) plan unit: [id:14201824] [2018-06-22 - CHCall], [2018-06-22 - CHDay], [2018-06-23 - CHCall2], [2018-06-24 - CHCall], [2018-06-25 - CHDay 4]
4241INFO : (05-17 07:44:54) plan unit: [id:14201825] [2018-06-29 - CHDay], [2018-06-29 - CHCall], [2018-06-30 - CHCall2], [2018-07-01 - CHCall], [2018-07-02 - CHDay 4]
4242INFO : (05-17 07:44:54) plan unit: [id:14201826] [2018-07-06 - CHDay], [2018-07-06 - CHCall], [2018-07-07 - CHCall2], [2018-07-08 - CHCall], [2018-07-09 - CHDay 4]
4243INFO : (05-17 07:44:54) plan unit: [id:14201827] [2018-07-13 - CHDay], [2018-07-13 - CHCall], [2018-07-14 - CHCall2], [2018-07-15 - CHCall], [2018-07-16 - CHDay 4]
4244INFO : (05-17 07:44:54) plan unit: [id:14201828] [2018-07-20 - CHDay], [2018-07-20 - CHCall], [2018-07-21 - CHCall2], [2018-07-22 - CHCall], [2018-07-23 - CHDay 4]
4245INFO : (05-17 07:44:54) plan unit: [id:14201829] [2018-07-27 - CHCall], [2018-07-27 - CHDay], [2018-07-28 - CHCall2], [2018-07-29 - CHCall], [2018-07-30 - CHDay 4]
4246INFO : (05-17 07:44:54) plan unit: [id:14201830] [2018-08-03 - CHCall], [2018-08-03 - CHDay], [2018-08-04 - CHCall2], [2018-08-05 - CHCall], [2018-08-06 - CHDay 4]
4247INFO : (05-17 07:44:54) plan unit: [id:14201831] [2018-08-10 - CHDay], [2018-08-10 - CHCall], [2018-08-11 - CHCall2], [2018-08-12 - CHCall], [2018-08-13 - CHDay 4]
4248INFO : (05-17 07:44:54) plan unit: [id:14201832] [2018-08-17 - CHDay], [2018-08-17 - CHCall], [2018-08-18 - CHCall2], [2018-08-19 - CHCall], [2018-08-20 - CHDay 4]
4249INFO : (05-17 07:44:54) plan unit: [id:14201833] [2018-08-24 - CHDay], [2018-08-24 - CHCall], [2018-08-25 - CHCall2], [2018-08-26 - CHCall], [2018-08-27 - CHDay 4]
4250INFO : (05-17 07:44:54) plan unit: [id:14201834] [2018-08-31 - CHDay], [2018-08-31 - CHCall], [2018-09-01 - CHCall2], [2018-09-02 - CHCall], [2018-09-03 - CHDay 4]
4251INFO : (05-17 07:44:54) plan unit: [id:15201821] [2018-06-01 - CHCall2], [2018-06-01 - CHDay 2], [2018-06-02 - CHCall], [2018-06-03 - CHCall2]
4252INFO : (05-17 07:44:54) plan unit: [id:15201822] [2018-06-08 - CHCall2], [2018-06-08 - CHDay 2], [2018-06-09 - CHCall], [2018-06-10 - CHCall2]
4253INFO : (05-17 07:44:54) plan unit: [id:15201823] [2018-06-15 - CHCall2], [2018-06-15 - CHDay 2], [2018-06-16 - CHCall], [2018-06-17 - CHCall2]
4254INFO : (05-17 07:44:54) plan unit: [id:15201824] [2018-06-22 - CHDay 2], [2018-06-22 - CHCall2], [2018-06-23 - CHCall], [2018-06-24 - CHCall2]
4255INFO : (05-17 07:44:54) plan unit: [id:15201825] [2018-06-29 - CHDay 2], [2018-06-29 - CHCall2], [2018-06-30 - CHCall], [2018-07-01 - CHCall2]
4256INFO : (05-17 07:44:54) plan unit: [id:15201826] [2018-07-06 - CHDay 2], [2018-07-06 - CHCall2], [2018-07-07 - CHCall], [2018-07-08 - CHCall2]
4257INFO : (05-17 07:44:54) plan unit: [id:15201827] [2018-07-13 - CHCall2], [2018-07-13 - CHDay 2], [2018-07-14 - CHCall], [2018-07-15 - CHCall2]
4258INFO : (05-17 07:44:54) plan unit: [id:15201828] [2018-07-20 - CHCall2], [2018-07-20 - CHDay 2], [2018-07-21 - CHCall], [2018-07-22 - CHCall2]
4259INFO : (05-17 07:44:54) plan unit: [id:15201829] [2018-07-27 - CHCall2], [2018-07-27 - CHDay 2], [2018-07-28 - CHCall], [2018-07-29 - CHCall2]
4260INFO : (05-17 07:44:54) plan unit: [id:15201830] [2018-08-03 - CHDay 2], [2018-08-03 - CHCall2], [2018-08-04 - CHCall], [2018-08-05 - CHCall2]
4261INFO : (05-17 07:44:54) plan unit: [id:15201831] [2018-08-10 - CHDay 2], [2018-08-10 - CHCall2], [2018-08-11 - CHCall], [2018-08-12 - CHCall2]
4262INFO : (05-17 07:44:54) plan unit: [id:15201832] [2018-08-17 - CHDay 2], [2018-08-17 - CHCall2], [2018-08-18 - CHCall], [2018-08-19 - CHCall2]
4263INFO : (05-17 07:44:54) plan unit: [id:15201833] [2018-08-24 - CHCall2], [2018-08-24 - CHDay 2], [2018-08-25 - CHCall], [2018-08-26 - CHCall2]
4264INFO : (05-17 07:44:54) plan unit: [id:15201834] [2018-08-31 - CHCall2], [2018-08-31 - CHDay 2], [2018-09-01 - CHCall], [2018-09-02 - CHCall2]
4265INFO : (05-17 07:44:54) plan unit: [id:16201821] [2018-06-01 - CHCV], [2018-06-02 - CHCV], [2018-06-03 - CHCV]
4266INFO : (05-17 07:44:54) plan unit: [id:16201822] [2018-06-08 - CHCV], [2018-06-09 - CHCV], [2018-06-10 - CHCV]
4267INFO : (05-17 07:44:54) plan unit: [id:16201823] [2018-06-15 - CHCV], [2018-06-16 - CHCV], [2018-06-17 - CHCV]
4268INFO : (05-17 07:44:54) plan unit: [id:16201824] [2018-06-22 - CHCV], [2018-06-23 - CHCV], [2018-06-24 - CHCV]
4269INFO : (05-17 07:44:54) plan unit: [id:16201826] [2018-07-06 - CHCV], [2018-07-07 - CHCV], [2018-07-08 - CHCV]
4270INFO : (05-17 07:44:54) plan unit: [id:16201827] [2018-07-13 - CHCV], [2018-07-14 - CHCV], [2018-07-15 - CHCV]
4271INFO : (05-17 07:44:54) plan unit: [id:16201828] [2018-07-20 - CHCV], [2018-07-21 - CHCV], [2018-07-22 - CHCV]
4272INFO : (05-17 07:44:54) plan unit: [id:16201829] [2018-07-27 - CHCV], [2018-07-28 - CHCV], [2018-07-29 - CHCV]
4273INFO : (05-17 07:44:54) plan unit: [id:16201830] [2018-08-03 - CHCV], [2018-08-04 - CHCV], [2018-08-05 - CHCV]
4274INFO : (05-17 07:44:54) plan unit: [id:16201831] [2018-08-10 - CHCV], [2018-08-11 - CHCV], [2018-08-12 - CHCV]
4275INFO : (05-17 07:44:54) plan unit: [id:16201832] [2018-08-17 - CHCV], [2018-08-18 - CHCV], [2018-08-19 - CHCV]
4276INFO : (05-17 07:44:54) plan unit: [id:16201833] [2018-08-24 - CHCV], [2018-08-25 - CHCV], [2018-08-26 - CHCV]
4277INFO : (05-17 07:44:54) plan unit: [id:17201821] [2018-06-01 - BL1], [2018-06-02 - BL2], [2018-06-03 - BL1]
4278INFO : (05-17 07:44:54) plan unit: [id:17201822] [2018-06-08 - BL1], [2018-06-09 - BL2], [2018-06-10 - BL1]
4279INFO : (05-17 07:44:54) plan unit: [id:17201823] [2018-06-15 - BL1], [2018-06-16 - BL2], [2018-06-17 - BL1]
4280INFO : (05-17 07:44:54) plan unit: [id:17201824] [2018-06-22 - BL1], [2018-06-23 - BL2], [2018-06-24 - BL1]
4281INFO : (05-17 07:44:54) plan unit: [id:17201826] [2018-07-06 - BL1], [2018-07-07 - BL2], [2018-07-08 - BL1]
4282INFO : (05-17 07:44:54) plan unit: [id:17201827] [2018-07-13 - BL1], [2018-07-14 - BL2], [2018-07-15 - BL1]
4283INFO : (05-17 07:44:54) plan unit: [id:17201828] [2018-07-20 - BL1], [2018-07-21 - BL2], [2018-07-22 - BL1]
4284INFO : (05-17 07:44:54) plan unit: [id:17201829] [2018-07-27 - BL1], [2018-07-28 - BL2], [2018-07-29 - BL1]
4285INFO : (05-17 07:44:54) plan unit: [id:17201830] [2018-08-03 - BL1], [2018-08-04 - BL2], [2018-08-05 - BL1]
4286INFO : (05-17 07:44:54) plan unit: [id:17201831] [2018-08-10 - BL1], [2018-08-11 - BL2], [2018-08-12 - BL1]
4287INFO : (05-17 07:44:54) plan unit: [id:17201832] [2018-08-17 - BL1], [2018-08-18 - BL2], [2018-08-19 - BL1]
4288INFO : (05-17 07:44:54) plan unit: [id:17201833] [2018-08-24 - BL1], [2018-08-25 - BL2], [2018-08-26 - BL1]
4289INFO : (05-17 07:44:54) plan unit: [id:18201821] [2018-06-01 - BL2], [2018-06-02 - BL1], [2018-06-03 - BL2]
4290INFO : (05-17 07:44:54) plan unit: [id:18201822] [2018-06-08 - BL2], [2018-06-09 - BL1], [2018-06-10 - BL2]
4291INFO : (05-17 07:44:54) plan unit: [id:18201823] [2018-06-15 - BL2], [2018-06-16 - BL1], [2018-06-17 - BL2]
4292INFO : (05-17 07:44:54) plan unit: [id:18201824] [2018-06-22 - BL2], [2018-06-23 - BL1], [2018-06-24 - BL2]
4293INFO : (05-17 07:44:54) plan unit: [id:18201826] [2018-07-06 - BL2], [2018-07-07 - BL1], [2018-07-08 - BL2]
4294INFO : (05-17 07:44:54) plan unit: [id:18201827] [2018-07-13 - BL2], [2018-07-14 - BL1], [2018-07-15 - BL2]
4295INFO : (05-17 07:44:54) plan unit: [id:18201828] [2018-07-20 - BL2], [2018-07-21 - BL1], [2018-07-22 - BL2]
4296INFO : (05-17 07:44:54) plan unit: [id:18201829] [2018-07-27 - BL2], [2018-07-28 - BL1], [2018-07-29 - BL2]
4297INFO : (05-17 07:44:54) plan unit: [id:18201830] [2018-08-03 - BL2], [2018-08-04 - BL1], [2018-08-05 - BL2]
4298INFO : (05-17 07:44:54) plan unit: [id:18201831] [2018-08-10 - BL2], [2018-08-11 - BL1], [2018-08-12 - BL2]
4299INFO : (05-17 07:44:54) plan unit: [id:18201832] [2018-08-17 - BL2], [2018-08-18 - BL1], [2018-08-19 - BL2]
4300INFO : (05-17 07:44:54) plan unit: [id:18201833] [2018-08-24 - BL2], [2018-08-25 - BL1], [2018-08-26 - BL2]
4301INFO : (05-17 07:44:54) plan unit: [id:19201821] [2018-05-31 - BLPeri1/Cath Call], [2018-06-01 - BLPeri1/Cath Call], [2018-06-02 - BLPeri1/Cath Call], [2018-06-03 - BLPeri1/Cath Call]
4302INFO : (05-17 07:44:54) plan unit: [id:19201822] [2018-06-07 - BLPeri1/Cath Call], [2018-06-08 - BLPeri1/Cath Call], [2018-06-09 - BLPeri1/Cath Call], [2018-06-10 - BLPeri1/Cath Call]
4303INFO : (05-17 07:44:54) plan unit: [id:19201823] [2018-06-14 - BLPeri1/Cath Call], [2018-06-15 - BLPeri1/Cath Call], [2018-06-16 - BLPeri1/Cath Call], [2018-06-17 - BLPeri1/Cath Call]
4304INFO : (05-17 07:44:54) plan unit: [id:19201824] [2018-06-21 - BLPeri1/Cath Call], [2018-06-22 - BLPeri1/Cath Call], [2018-06-23 - BLPeri1/Cath Call], [2018-06-24 - BLPeri1/Cath Call]
4305INFO : (05-17 07:44:54) plan unit: [id:19201826] [2018-07-05 - BLPeri1/Cath Call], [2018-07-06 - BLPeri1/Cath Call], [2018-07-07 - BLPeri1/Cath Call], [2018-07-08 - BLPeri1/Cath Call]
4306INFO : (05-17 07:44:54) plan unit: [id:19201827] [2018-07-12 - BLPeri1/Cath Call], [2018-07-13 - BLPeri1/Cath Call], [2018-07-14 - BLPeri1/Cath Call], [2018-07-15 - BLPeri1/Cath Call]
4307INFO : (05-17 07:44:54) plan unit: [id:19201828] [2018-07-19 - BLPeri1/Cath Call], [2018-07-20 - BLPeri1/Cath Call], [2018-07-21 - BLPeri1/Cath Call], [2018-07-22 - BLPeri1/Cath Call]
4308INFO : (05-17 07:44:54) plan unit: [id:19201829] [2018-07-26 - BLPeri1/Cath Call], [2018-07-27 - BLPeri1/Cath Call], [2018-07-28 - BLPeri1/Cath Call], [2018-07-29 - BLPeri1/Cath Call]
4309INFO : (05-17 07:44:54) plan unit: [id:19201830] [2018-08-02 - BLPeri1/Cath Call], [2018-08-03 - BLPeri1/Cath Call], [2018-08-04 - BLPeri1/Cath Call], [2018-08-05 - BLPeri1/Cath Call]
4310INFO : (05-17 07:44:54) plan unit: [id:19201831] [2018-08-09 - BLPeri1/Cath Call], [2018-08-10 - BLPeri1/Cath Call], [2018-08-11 - BLPeri1/Cath Call], [2018-08-12 - BLPeri1/Cath Call]
4311INFO : (05-17 07:44:54) plan unit: [id:19201832] [2018-08-16 - BLPeri1/Cath Call], [2018-08-17 - BLPeri1/Cath Call], [2018-08-18 - BLPeri1/Cath Call], [2018-08-19 - BLPeri1/Cath Call]
4312INFO : (05-17 07:44:54) plan unit: [id:19201833] [2018-08-23 - BLPeri1/Cath Call], [2018-08-24 - BLPeri1/Cath Call], [2018-08-25 - BLPeri1/Cath Call], [2018-08-26 - BLPeri1/Cath Call]
4313INFO : (05-17 07:44:54) plan unit: [id:20201821] [2018-06-01 - Met Day], [2018-06-01 - Met1], [2018-06-02 - Met3 PM], [2018-06-03 - Met4 PM], [2018-06-03 - Met1 AM]
4314INFO : (05-17 07:44:54) plan unit: [id:20201822] [2018-06-08 - Met Day], [2018-06-08 - Met1], [2018-06-09 - Met3 PM], [2018-06-10 - Met4 PM], [2018-06-10 - Met1 AM]
4315INFO : (05-17 07:44:54) plan unit: [id:20201823] [2018-06-15 - Met Day], [2018-06-15 - Met1], [2018-06-16 - Met3 PM], [2018-06-17 - Met4 PM], [2018-06-17 - Met1 AM]
4316INFO : (05-17 07:44:54) plan unit: [id:20201824] [2018-06-22 - Met Day], [2018-06-22 - Met1], [2018-06-23 - Met3 PM], [2018-06-24 - Met1 AM], [2018-06-24 - Met4 PM]
4317INFO : (05-17 07:44:54) plan unit: [id:20201825] [2018-06-29 - Met1], [2018-06-29 - Met Day], [2018-06-30 - Met3 PM], [2018-07-01 - Met1 AM], [2018-07-01 - Met4 PM]
4318INFO : (05-17 07:44:54) plan unit: [id:20201826] [2018-07-06 - Met1], [2018-07-06 - Met Day], [2018-07-07 - Met3 PM], [2018-07-08 - Met4 PM], [2018-07-08 - Met1 AM]
4319INFO : (05-17 07:44:54) plan unit: [id:20201827] [2018-07-13 - Met Day], [2018-07-13 - Met1], [2018-07-14 - Met3 PM], [2018-07-15 - Met4 PM], [2018-07-15 - Met1 AM]
4320INFO : (05-17 07:44:54) plan unit: [id:20201828] [2018-07-20 - Met Day], [2018-07-20 - Met1], [2018-07-21 - Met3 PM], [2018-07-22 - Met4 PM], [2018-07-22 - Met1 AM]
4321INFO : (05-17 07:44:54) plan unit: [id:20201829] [2018-07-27 - Met Day], [2018-07-27 - Met1], [2018-07-28 - Met3 PM], [2018-07-29 - Met4 PM], [2018-07-29 - Met1 AM]
4322INFO : (05-17 07:44:54) plan unit: [id:20201830] [2018-08-03 - Met Day], [2018-08-03 - Met1], [2018-08-04 - Met3 PM], [2018-08-05 - Met1 AM], [2018-08-05 - Met4 PM]
4323INFO : (05-17 07:44:54) plan unit: [id:20201831] [2018-08-10 - Met1], [2018-08-10 - Met Day], [2018-08-11 - Met3 PM], [2018-08-12 - Met1 AM], [2018-08-12 - Met4 PM]
4324INFO : (05-17 07:44:54) plan unit: [id:20201832] [2018-08-17 - Met1], [2018-08-17 - Met Day], [2018-08-18 - Met3 PM], [2018-08-19 - Met4 PM], [2018-08-19 - Met1 AM]
4325INFO : (05-17 07:44:54) plan unit: [id:20201833] [2018-08-24 - Met1], [2018-08-24 - Met Day], [2018-08-25 - Met3 PM], [2018-08-26 - Met4 PM], [2018-08-26 - Met1 AM]
4326INFO : (05-17 07:44:54) plan unit: [id:20201834] [2018-08-31 - Met Day], [2018-08-31 - Met1], [2018-09-01 - Met3 PM], [2018-09-02 - Met4 PM], [2018-09-02 - Met1 AM]
4327INFO : (05-17 07:44:54) plan unit: [id:21201821] [2018-06-01 - Met Day (3)], [2018-06-01 - Met3], [2018-06-02 - Met4 PM], [2018-06-02 - Met1 AM], [2018-06-03 - Met2 AM], [2018-06-03 - Met1 PM], [2018-06-04 - PCMet1]
4328INFO : (05-17 07:44:54) plan unit: [id:21201822] [2018-06-08 - Met Day (3)], [2018-06-08 - Met3], [2018-06-09 - Met1 AM], [2018-06-09 - Met4 PM], [2018-06-10 - Met2 AM], [2018-06-10 - Met1 PM], [2018-06-11 - PCMet1]
4329INFO : (05-17 07:44:54) plan unit: [id:21201823] [2018-06-15 - Met3], [2018-06-15 - Met Day (3)], [2018-06-16 - Met1 AM], [2018-06-16 - Met4 PM], [2018-06-17 - Met2 AM], [2018-06-17 - Met1 PM], [2018-06-18 - PCMet1]
4330INFO : (05-17 07:44:54) plan unit: [id:21201824] [2018-06-22 - Met Day (3)], [2018-06-22 - Met3], [2018-06-23 - Met1 AM], [2018-06-23 - Met4 PM], [2018-06-24 - Met2 AM], [2018-06-24 - Met1 PM], [2018-06-25 - PCMet1]
4331INFO : (05-17 07:44:54) plan unit: [id:21201825] [2018-06-29 - Met Day (3)], [2018-06-29 - Met3], [2018-06-30 - Met1 AM], [2018-06-30 - Met4 PM], [2018-07-01 - Met1 PM], [2018-07-01 - Met2 AM], [2018-07-02 - PCMet1]
4332INFO : (05-17 07:44:54) plan unit: [id:21201826] [2018-07-06 - Met Day (3)], [2018-07-06 - Met3], [2018-07-07 - Met1 AM], [2018-07-07 - Met4 PM], [2018-07-08 - Met1 PM], [2018-07-08 - Met2 AM], [2018-07-09 - PCMet1]
4333INFO : (05-17 07:44:54) plan unit: [id:21201827] [2018-07-13 - Met Day (3)], [2018-07-13 - Met3], [2018-07-14 - Met1 AM], [2018-07-14 - Met4 PM], [2018-07-15 - Met2 AM], [2018-07-15 - Met1 PM], [2018-07-16 - PCMet1]
4334INFO : (05-17 07:44:54) plan unit: [id:21201828] [2018-07-20 - Met Day (3)], [2018-07-20 - Met3], [2018-07-21 - Met1 AM], [2018-07-21 - Met4 PM], [2018-07-22 - Met2 AM], [2018-07-22 - Met1 PM], [2018-07-23 - PCMet1]
4335INFO : (05-17 07:44:54) plan unit: [id:21201829] [2018-07-27 - Met Day (3)], [2018-07-27 - Met3], [2018-07-28 - Met1 AM], [2018-07-28 - Met4 PM], [2018-07-29 - Met2 AM], [2018-07-29 - Met1 PM], [2018-07-30 - PCMet1]
4336INFO : (05-17 07:44:54) plan unit: [id:21201830] [2018-08-03 - Met Day (3)], [2018-08-03 - Met3], [2018-08-04 - Met1 AM], [2018-08-04 - Met4 PM], [2018-08-05 - Met2 AM], [2018-08-05 - Met1 PM], [2018-08-06 - PCMet1]
4337INFO : (05-17 07:44:54) plan unit: [id:21201831] [2018-08-10 - Met Day (3)], [2018-08-10 - Met3], [2018-08-11 - Met1 AM], [2018-08-11 - Met4 PM], [2018-08-12 - Met2 AM], [2018-08-12 - Met1 PM], [2018-08-13 - PCMet1]
4338INFO : (05-17 07:44:54) plan unit: [id:21201832] [2018-08-17 - Met Day (3)], [2018-08-17 - Met3], [2018-08-18 - Met1 AM], [2018-08-18 - Met4 PM], [2018-08-19 - Met1 PM], [2018-08-19 - Met2 AM], [2018-08-20 - PCMet1]
4339INFO : (05-17 07:44:54) plan unit: [id:21201833] [2018-08-24 - Met Day (3)], [2018-08-24 - Met3], [2018-08-25 - Met1 AM], [2018-08-25 - Met4 PM], [2018-08-26 - Met2 AM], [2018-08-26 - Met1 PM], [2018-08-27 - PCMet1]
4340INFO : (05-17 07:44:54) plan unit: [id:21201834] [2018-08-31 - Met Day (3)], [2018-08-31 - Met3], [2018-09-01 - Met4 PM], [2018-09-01 - Met1 AM], [2018-09-02 - Met2 AM], [2018-09-02 - Met1 PM], [2018-09-03 - PCMet1]
4341INFO : (05-17 07:44:54) plan unit: [id:22201821] [2018-06-01 - Met Day (2)], [2018-06-01 - Met2], [2018-06-02 - Met2 PM], [2018-06-03 - Met2 PM], [2018-06-04 - Met Day (5)]
4342INFO : (05-17 07:44:54) plan unit: [id:22201822] [2018-06-08 - Met Day (2)], [2018-06-08 - Met2], [2018-06-09 - Met2 PM], [2018-06-10 - Met2 PM], [2018-06-11 - Met Day (5)]
4343INFO : (05-17 07:44:54) plan unit: [id:22201823] [2018-06-15 - Met Day (2)], [2018-06-15 - Met2], [2018-06-16 - Met2 PM], [2018-06-17 - Met2 PM], [2018-06-18 - Met Day (5)]
4344INFO : (05-17 07:44:54) plan unit: [id:22201824] [2018-06-22 - Met Day (2)], [2018-06-22 - Met2], [2018-06-23 - Met2 PM], [2018-06-24 - Met2 PM], [2018-06-25 - Met Day (5)]
4345INFO : (05-17 07:44:54) plan unit: [id:22201825] [2018-06-29 - Met Day (2)], [2018-06-29 - Met2], [2018-06-30 - Met2 PM], [2018-07-01 - Met2 PM], [2018-07-02 - Met Day (5)]
4346INFO : (05-17 07:44:54) plan unit: [id:22201826] [2018-07-06 - Met2], [2018-07-06 - Met Day (2)], [2018-07-07 - Met2 PM], [2018-07-08 - Met2 PM], [2018-07-09 - Met Day (5)]
4347INFO : (05-17 07:44:54) plan unit: [id:22201827] [2018-07-13 - Met2], [2018-07-13 - Met Day (2)], [2018-07-14 - Met2 PM], [2018-07-15 - Met2 PM], [2018-07-16 - Met Day (5)]
4348INFO : (05-17 07:44:54) plan unit: [id:22201828] [2018-07-20 - Met Day (2)], [2018-07-20 - Met2], [2018-07-21 - Met2 PM], [2018-07-22 - Met2 PM], [2018-07-23 - Met Day (5)]
4349INFO : (05-17 07:44:54) plan unit: [id:22201829] [2018-07-27 - Met Day (2)], [2018-07-27 - Met2], [2018-07-28 - Met2 PM], [2018-07-29 - Met2 PM], [2018-07-30 - Met Day (5)]
4350INFO : (05-17 07:44:54) plan unit: [id:22201830] [2018-08-03 - Met Day (2)], [2018-08-03 - Met2], [2018-08-04 - Met2 PM], [2018-08-05 - Met2 PM], [2018-08-06 - Met Day (5)]
4351INFO : (05-17 07:44:54) plan unit: [id:22201831] [2018-08-10 - Met Day (2)], [2018-08-10 - Met2], [2018-08-11 - Met2 PM], [2018-08-12 - Met2 PM], [2018-08-13 - Met Day (5)]
4352INFO : (05-17 07:44:54) plan unit: [id:22201832] [2018-08-17 - Met2], [2018-08-17 - Met Day (2)], [2018-08-18 - Met2 PM], [2018-08-19 - Met2 PM], [2018-08-20 - Met Day (5)]
4353INFO : (05-17 07:44:54) plan unit: [id:22201833] [2018-08-24 - Met2], [2018-08-24 - Met Day (2)], [2018-08-25 - Met2 PM], [2018-08-26 - Met2 PM], [2018-08-27 - Met Day (5)]
4354INFO : (05-17 07:44:54) plan unit: [id:22201834] [2018-08-31 - Met Day (2)], [2018-08-31 - Met2], [2018-09-01 - Met2 PM], [2018-09-02 - Met2 PM], [2018-09-03 - Met Day (5)]
4355INFO : (05-17 07:44:54) plan unit: [id:23201821] [2018-06-01 - Met Day (4)], [2018-06-01 - Met4], [2018-06-02 - Met2 AM], [2018-06-02 - Met1 PM], [2018-06-03 - Met3 PM]
4356INFO : (05-17 07:44:54) plan unit: [id:23201822] [2018-06-08 - Met Day (4)], [2018-06-08 - Met4], [2018-06-09 - Met2 AM], [2018-06-09 - Met1 PM], [2018-06-10 - Met3 PM]
4357INFO : (05-17 07:44:54) plan unit: [id:23201823] [2018-06-15 - Met Day (4)], [2018-06-15 - Met4], [2018-06-16 - Met1 PM], [2018-06-16 - Met2 AM], [2018-06-17 - Met3 PM]
4358INFO : (05-17 07:44:54) plan unit: [id:23201824] [2018-06-22 - Met Day (4)], [2018-06-22 - Met4], [2018-06-23 - Met1 PM], [2018-06-23 - Met2 AM], [2018-06-24 - Met3 PM]
4359INFO : (05-17 07:44:54) plan unit: [id:23201825] [2018-06-29 - Met Day (4)], [2018-06-29 - Met4], [2018-06-30 - Met2 AM], [2018-06-30 - Met1 PM], [2018-07-01 - Met3 PM]
4360INFO : (05-17 07:44:54) plan unit: [id:23201826] [2018-07-06 - Met4], [2018-07-06 - Met Day (4)], [2018-07-07 - Met2 AM], [2018-07-07 - Met1 PM], [2018-07-08 - Met3 PM]
4361INFO : (05-17 07:44:54) plan unit: [id:23201827] [2018-07-13 - Met Day (4)], [2018-07-13 - Met4], [2018-07-14 - Met2 AM], [2018-07-14 - Met1 PM], [2018-07-15 - Met3 PM]
4362INFO : (05-17 07:44:54) plan unit: [id:23201828] [2018-07-20 - Met Day (4)], [2018-07-20 - Met4], [2018-07-21 - Met2 AM], [2018-07-21 - Met1 PM], [2018-07-22 - Met3 PM]
4363INFO : (05-17 07:44:54) plan unit: [id:23201829] [2018-07-27 - Met Day (4)], [2018-07-27 - Met4], [2018-07-28 - Met2 AM], [2018-07-28 - Met1 PM], [2018-07-29 - Met3 PM]
4364INFO : (05-17 07:44:54) plan unit: [id:23201830] [2018-08-03 - Met Day (4)], [2018-08-03 - Met4], [2018-08-04 - Met1 PM], [2018-08-04 - Met2 AM], [2018-08-05 - Met3 PM]
4365INFO : (05-17 07:44:54) plan unit: [id:23201831] [2018-08-10 - Met Day (4)], [2018-08-10 - Met4], [2018-08-11 - Met2 AM], [2018-08-11 - Met1 PM], [2018-08-12 - Met3 PM]
4366INFO : (05-17 07:44:54) plan unit: [id:23201832] [2018-08-17 - Met Day (4)], [2018-08-17 - Met4], [2018-08-18 - Met2 AM], [2018-08-18 - Met1 PM], [2018-08-19 - Met3 PM]
4367INFO : (05-17 07:44:54) plan unit: [id:23201833] [2018-08-24 - Met Day (4)], [2018-08-24 - Met4], [2018-08-25 - Met2 AM], [2018-08-25 - Met1 PM], [2018-08-26 - Met3 PM]
4368INFO : (05-17 07:44:54) plan unit: [id:23201834] [2018-08-31 - Met Day (4)], [2018-08-31 - Met4], [2018-09-01 - Met2 AM], [2018-09-01 - Met1 PM], [2018-09-02 - Met3 PM]
4369INFO : (05-17 07:44:54) plan unit: [id:24201821] [2018-06-01 - UMH Day], [2018-06-01 - UMH], [2018-06-02 - UMH], [2018-06-03 - UMH], [2018-06-04 - UMH Day (2)]
4370INFO : (05-17 07:44:54) plan unit: [id:24201822] [2018-06-08 - UMH Day], [2018-06-08 - UMH], [2018-06-09 - UMH], [2018-06-10 - UMH], [2018-06-11 - UMH Day (2)]
4371INFO : (05-17 07:44:54) plan unit: [id:24201823] [2018-06-15 - UMH Day], [2018-06-15 - UMH], [2018-06-16 - UMH], [2018-06-17 - UMH], [2018-06-18 - UMH Day (2)]
4372INFO : (05-17 07:44:54) plan unit: [id:24201824] [2018-06-22 - UMH], [2018-06-22 - UMH Day], [2018-06-23 - UMH], [2018-06-24 - UMH], [2018-06-25 - UMH Day (2)]
4373INFO : (05-17 07:44:54) plan unit: [id:24201825] [2018-06-29 - UMH], [2018-06-29 - UMH Day], [2018-06-30 - UMH], [2018-07-01 - UMH], [2018-07-02 - UMH Day (2)]
4374INFO : (05-17 07:44:54) plan unit: [id:24201826] [2018-07-06 - UMH Day], [2018-07-06 - UMH], [2018-07-07 - UMH], [2018-07-08 - UMH], [2018-07-09 - UMH Day (2)]
4375INFO : (05-17 07:44:54) plan unit: [id:24201827] [2018-07-13 - UMH Day], [2018-07-13 - UMH], [2018-07-14 - UMH], [2018-07-15 - UMH], [2018-07-16 - UMH Day (2)]
4376INFO : (05-17 07:44:54) plan unit: [id:24201828] [2018-07-20 - UMH Day], [2018-07-20 - UMH], [2018-07-21 - UMH], [2018-07-22 - UMH], [2018-07-23 - UMH Day (2)]
4377INFO : (05-17 07:44:54) plan unit: [id:24201829] [2018-07-27 - UMH Day], [2018-07-27 - UMH], [2018-07-28 - UMH], [2018-07-29 - UMH], [2018-07-30 - UMH Day (2)]
4378INFO : (05-17 07:44:54) plan unit: [id:24201830] [2018-08-03 - UMH], [2018-08-03 - UMH Day], [2018-08-04 - UMH], [2018-08-05 - UMH], [2018-08-06 - UMH Day (2)]
4379INFO : (05-17 07:44:54) plan unit: [id:24201831] [2018-08-10 - UMH], [2018-08-10 - UMH Day], [2018-08-11 - UMH], [2018-08-12 - UMH], [2018-08-13 - UMH Day (2)]
4380INFO : (05-17 07:44:54) plan unit: [id:24201832] [2018-08-17 - UMH Day], [2018-08-17 - UMH], [2018-08-18 - UMH], [2018-08-19 - UMH], [2018-08-20 - UMH Day (2)]
4381INFO : (05-17 07:44:54) plan unit: [id:24201833] [2018-08-24 - UMH Day], [2018-08-24 - UMH], [2018-08-25 - UMH], [2018-08-26 - UMH], [2018-08-27 - UMH Day (2)]
4382INFO : (05-17 07:44:54) plan unit: [id:24201834] [2018-08-31 - UMH Day], [2018-08-31 - UMH], [2018-09-01 - UMH], [2018-09-02 - UMH], [2018-09-03 - UMH Day (2)]
4383INFO : (05-17 07:44:54) plan unit: [id:25201821] [2018-06-01 - Zee], [2018-06-02 - Zee], [2018-06-03 - Zee], [2018-06-04 - PC Zee], [2018-06-04 - Zee DOD]
4384INFO : (05-17 07:44:54) plan unit: [id:25201822] [2018-06-08 - Zee], [2018-06-09 - Zee], [2018-06-10 - Zee], [2018-06-11 - PC Zee], [2018-06-11 - Zee DOD]
4385INFO : (05-17 07:44:54) plan unit: [id:25201823] [2018-06-15 - Zee], [2018-06-16 - Zee], [2018-06-17 - Zee], [2018-06-18 - Zee DOD], [2018-06-18 - PC Zee]
4386INFO : (05-17 07:44:54) plan unit: [id:25201824] [2018-06-22 - Zee], [2018-06-23 - Zee], [2018-06-24 - Zee], [2018-06-25 - Zee DOD], [2018-06-25 - PC Zee]
4387INFO : (05-17 07:44:54) plan unit: [id:25201825] [2018-06-29 - Zee], [2018-06-30 - Zee], [2018-07-01 - Zee], [2018-07-02 - Zee DOD], [2018-07-02 - PC Zee]
4388INFO : (05-17 07:44:54) plan unit: [id:25201826] [2018-07-06 - Zee], [2018-07-07 - Zee], [2018-07-08 - Zee], [2018-07-09 - Zee DOD], [2018-07-09 - PC Zee]
4389INFO : (05-17 07:44:54) plan unit: [id:25201827] [2018-07-13 - Zee], [2018-07-14 - Zee], [2018-07-15 - Zee], [2018-07-16 - Zee DOD], [2018-07-16 - PC Zee]
4390INFO : (05-17 07:44:54) plan unit: [id:25201828] [2018-07-20 - Zee], [2018-07-21 - Zee], [2018-07-22 - Zee], [2018-07-23 - PC Zee], [2018-07-23 - Zee DOD]
4391INFO : (05-17 07:44:54) plan unit: [id:25201829] [2018-07-27 - Zee], [2018-07-28 - Zee], [2018-07-29 - Zee], [2018-07-30 - Zee DOD], [2018-07-30 - PC Zee]
4392INFO : (05-17 07:44:54) plan unit: [id:25201830] [2018-08-03 - Zee], [2018-08-04 - Zee], [2018-08-05 - Zee], [2018-08-06 - Zee DOD], [2018-08-06 - PC Zee]
4393INFO : (05-17 07:44:54) plan unit: [id:25201831] [2018-08-10 - Zee], [2018-08-11 - Zee], [2018-08-12 - Zee], [2018-08-13 - Zee DOD], [2018-08-13 - PC Zee]
4394INFO : (05-17 07:44:54) plan unit: [id:25201832] [2018-08-17 - Zee], [2018-08-18 - Zee], [2018-08-19 - Zee], [2018-08-20 - Zee DOD], [2018-08-20 - PC Zee]
4395INFO : (05-17 07:44:54) plan unit: [id:25201833] [2018-08-24 - Zee], [2018-08-25 - Zee], [2018-08-26 - Zee], [2018-08-27 - Zee DOD], [2018-08-27 - PC Zee]
4396INFO : (05-17 07:44:54) plan unit: [id:25201834] [2018-08-31 - Zee], [2018-09-01 - Zee], [2018-09-02 - Zee], [2018-09-03 - PC Zee], [2018-09-03 - Zee DOD]
4397INFO : (05-17 07:44:54) plan unit: [id:27201823] [2018-06-10 - CTCC - Offsite]
4398INFO : (05-17 07:44:54) plan unit: [id:27201824] [2018-06-17 - CTCC - Offsite]
4399INFO : (05-17 07:44:54) plan unit: [id:27201825] [2018-06-24 - CTCC - Offsite]
4400INFO : (05-17 07:44:54) plan unit: [id:27201826] [2018-07-01 - CTCC - Offsite]
4401INFO : (05-17 07:44:54) plan unit: [id:27201827] [2018-07-08 - CTCC - Offsite]
4402INFO : (05-17 07:44:54) plan unit: [id:27201828] [2018-07-15 - CTCC - Offsite]
4403INFO : (05-17 07:44:54) plan unit: [id:27201829] [2018-07-22 - CTCC - Offsite]
4404INFO : (05-17 07:44:54) plan unit: [id:27201830] [2018-07-29 - CTCC - Offsite]
4405INFO : (05-17 07:44:54) plan unit: [id:27201831] [2018-08-05 - CTCC - Offsite]
4406INFO : (05-17 07:44:54) plan unit: [id:27201832] [2018-08-12 - CTCC - Offsite]
4407INFO : (05-17 07:44:54) plan unit: [id:27201833] [2018-08-19 - CTCC - Offsite]
4408INFO : (05-17 07:44:54) plan unit: [id:27201834] [2018-08-26 - CTCC - Offsite]
4409INFO : (05-17 07:44:54) plan unit: [id:27201835] [2018-09-02 - CTCC - Offsite]
4410INFO : (05-17 07:44:54) plan unit: [id:28201822] [2018-06-03 - CTCC - Offsite (2)]
4411INFO : (05-17 07:44:54) plan unit: [id:28201823] [2018-06-10 - CTCC - Offsite (2)]
4412INFO : (05-17 07:44:54) plan unit: [id:28201824] [2018-06-17 - CTCC - Offsite (2)]
4413INFO : (05-17 07:44:54) plan unit: [id:28201825] [2018-06-24 - CTCC - Offsite (2)]
4414INFO : (05-17 07:44:54) plan unit: [id:28201826] [2018-07-01 - CTCC - Offsite (2)]
4415INFO : (05-17 07:44:54) plan unit: [id:28201827] [2018-07-08 - CTCC - Offsite (2)]
4416INFO : (05-17 07:44:54) plan unit: [id:28201828] [2018-07-15 - CTCC - Offsite (2)]
4417INFO : (05-17 07:44:54) plan unit: [id:28201829] [2018-07-22 - CTCC - Offsite (2)]
4418INFO : (05-17 07:44:54) plan unit: [id:28201830] [2018-07-29 - CTCC - Offsite (2)]
4419INFO : (05-17 07:44:54) plan unit: [id:28201831] [2018-08-05 - CTCC - Offsite (2)]
4420INFO : (05-17 07:44:54) plan unit: [id:28201832] [2018-08-12 - CTCC - Offsite (2)]
4421INFO : (05-17 07:44:54) plan unit: [id:28201833] [2018-08-19 - CTCC - Offsite (2)]
4422INFO : (05-17 07:44:54) plan unit: [id:28201834] [2018-08-26 - CTCC - Offsite (2)]
4423INFO : (05-17 07:44:54) plan unit: [id:28201835] [2018-09-02 - CTCC - Offsite (2)]
4424INFO : (05-17 07:44:54) plan unit: [id:29201822] [2018-06-03 - CTCC PM]
4425INFO : (05-17 07:44:54) plan unit: [id:29201823] [2018-06-10 - CTCC PM]
4426INFO : (05-17 07:44:54) plan unit: [id:29201824] [2018-06-17 - CTCC PM]
4427INFO : (05-17 07:44:54) plan unit: [id:29201825] [2018-06-24 - CTCC PM]
4428INFO : (05-17 07:44:54) plan unit: [id:29201826] [2018-07-01 - CTCC PM]
4429INFO : (05-17 07:44:54) plan unit: [id:29201827] [2018-07-08 - CTCC PM]
4430INFO : (05-17 07:44:54) plan unit: [id:29201828] [2018-07-15 - CTCC PM]
4431INFO : (05-17 07:44:54) plan unit: [id:29201829] [2018-07-22 - CTCC PM]
4432INFO : (05-17 07:44:54) plan unit: [id:29201830] [2018-07-29 - CTCC PM]
4433INFO : (05-17 07:44:54) plan unit: [id:29201831] [2018-08-05 - CTCC PM]
4434INFO : (05-17 07:44:54) plan unit: [id:29201832] [2018-08-12 - CTCC PM]
4435INFO : (05-17 07:44:54) plan unit: [id:29201833] [2018-08-19 - CTCC PM]
4436INFO : (05-17 07:44:54) plan unit: [id:29201834] [2018-08-26 - CTCC PM]
4437INFO : (05-17 07:44:54) plan unit: [id:29201835] [2018-09-02 - CTCC PM]
4438INFO : (05-17 07:44:54) plan unit: [id:105201822] [2018-06-04 - BL Short]
4439INFO : (05-17 07:44:54) plan unit: [id:105201823] [2018-06-11 - BL Short]
4440INFO : (05-17 07:44:54) plan unit: [id:105201824] [2018-06-18 - BL Short]
4441INFO : (05-17 07:44:54) plan unit: [id:105201825] [2018-06-25 - BL Short]
4442INFO : (05-17 07:44:54) plan unit: [id:105201826] [2018-07-02 - BL Short]
4443INFO : (05-17 07:44:54) plan unit: [id:105201827] [2018-07-09 - BL Short]
4444INFO : (05-17 07:44:54) plan unit: [id:105201828] [2018-07-16 - BL Short]
4445INFO : (05-17 07:44:54) plan unit: [id:105201829] [2018-07-23 - BL Short]
4446INFO : (05-17 07:44:54) plan unit: [id:105201830] [2018-07-30 - BL Short]
4447INFO : (05-17 07:44:54) plan unit: [id:105201831] [2018-08-06 - BL Short]
4448INFO : (05-17 07:44:54) plan unit: [id:105201832] [2018-08-13 - BL Short]
4449INFO : (05-17 07:44:54) plan unit: [id:105201833] [2018-08-20 - BL Short]
4450INFO : (05-17 07:44:54) plan unit: [id:105201834] [2018-08-27 - BL Short]
4451INFO : (05-17 07:44:54) plan unit: [id:105201835] [2018-09-03 - BL Short]
4452INFO : (05-17 07:44:54) plan unit: [id:133201822] [2018-06-04 - Pine Day]
4453INFO : (05-17 07:44:54) plan unit: [id:133201824] [2018-06-18 - Pine Day]
4454INFO : (05-17 07:44:54) plan unit: [id:133201826] [2018-07-02 - Pine Day]
4455INFO : (05-17 07:44:54) plan unit: [id:133201827] [2018-07-09 - Pine Day]
4456INFO : (05-17 07:44:54) plan unit: [id:133201828] [2018-07-16 - Pine Day]
4457INFO : (05-17 07:44:54) plan unit: [id:133201830] [2018-07-30 - Pine Day]
4458INFO : (05-17 07:44:54) plan unit: [id:133201831] [2018-08-06 - Pine Day]
4459INFO : (05-17 07:44:54) plan unit: [id:133201832] [2018-08-13 - Pine Day]
4460INFO : (05-17 07:44:54) plan unit: [id:133201833] [2018-08-20 - Pine Day]
4461INFO : (05-17 07:44:54) plan unit: [id:133201834] [2018-08-27 - Pine Day]
4462INFO : (05-17 07:44:54) plan unit: [id:133201835] [2018-09-03 - Pine Day]
4463INFO : (05-17 07:44:54) plan unit: [id:161201822] [2018-06-04 - OffPC BUC]
4464INFO : (05-17 07:44:54) plan unit: [id:161201823] [2018-06-11 - OffPC BUC]
4465INFO : (05-17 07:44:54) plan unit: [id:161201824] [2018-06-18 - OffPC BUC]
4466INFO : (05-17 07:44:54) plan unit: [id:161201825] [2018-06-25 - OffPC BUC]
4467INFO : (05-17 07:44:54) plan unit: [id:161201826] [2018-07-02 - OffPC BUC]
4468INFO : (05-17 07:44:54) plan unit: [id:161201827] [2018-07-09 - OffPC BUC]
4469INFO : (05-17 07:44:54) plan unit: [id:161201828] [2018-07-16 - OffPC BUC]
4470INFO : (05-17 07:44:54) plan unit: [id:161201829] [2018-07-23 - OffPC BUC]
4471INFO : (05-17 07:44:54) plan unit: [id:161201830] [2018-07-30 - OffPC BUC]
4472INFO : (05-17 07:44:54) plan unit: [id:161201831] [2018-08-06 - OffPC BUC]
4473INFO : (05-17 07:44:54) plan unit: [id:161201832] [2018-08-13 - OffPC BUC]
4474INFO : (05-17 07:44:54) plan unit: [id:161201833] [2018-08-20 - OffPC BUC]
4475INFO : (05-17 07:44:54) plan unit: [id:161201834] [2018-08-27 - OffPC BUC]
4476INFO : (05-17 07:44:54) plan unit: [id:161201835] [2018-09-03 - OffPC BUC]
4477INFO : (05-17 07:44:54) plan unit: [id:162201822] [2018-06-04 - OffPC BW2]
4478INFO : (05-17 07:44:54) plan unit: [id:162201823] [2018-06-11 - OffPC BW2]
4479INFO : (05-17 07:44:54) plan unit: [id:162201824] [2018-06-18 - OffPC BW2]
4480INFO : (05-17 07:44:54) plan unit: [id:162201825] [2018-06-25 - OffPC BW2]
4481INFO : (05-17 07:44:54) plan unit: [id:162201826] [2018-07-02 - OffPC BW2]
4482INFO : (05-17 07:44:54) plan unit: [id:162201827] [2018-07-09 - OffPC BW2]
4483INFO : (05-17 07:44:54) plan unit: [id:162201828] [2018-07-16 - OffPC BW2]
4484INFO : (05-17 07:44:54) plan unit: [id:162201829] [2018-07-23 - OffPC BW2]
4485INFO : (05-17 07:44:54) plan unit: [id:162201830] [2018-07-30 - OffPC BW2]
4486INFO : (05-17 07:44:54) plan unit: [id:162201831] [2018-08-06 - OffPC BW2]
4487INFO : (05-17 07:44:54) plan unit: [id:162201832] [2018-08-13 - OffPC BW2]
4488INFO : (05-17 07:44:54) plan unit: [id:162201833] [2018-08-20 - OffPC BW2]
4489INFO : (05-17 07:44:54) plan unit: [id:162201834] [2018-08-27 - OffPC BW2]
4490INFO : (05-17 07:44:54) plan unit: [id:162201835] [2018-09-03 - OffPC BW2]
4491INFO : (05-17 07:44:54) plan unit: [id:1102201822] [2018-06-09 - CTCC - Offsite]
4492INFO : (05-17 07:44:54) plan unit: [id:1102201823] [2018-06-16 - CTCC - Offsite]
4493INFO : (05-17 07:44:54) plan unit: [id:1102201824] [2018-06-23 - CTCC - Offsite]
4494INFO : (05-17 07:44:54) plan unit: [id:1102201825] [2018-06-30 - CTCC - Offsite]
4495INFO : (05-17 07:44:54) plan unit: [id:1102201826] [2018-07-07 - CTCC - Offsite]
4496INFO : (05-17 07:44:54) plan unit: [id:1102201827] [2018-07-14 - CTCC - Offsite]
4497INFO : (05-17 07:44:54) plan unit: [id:1102201828] [2018-07-21 - CTCC - Offsite]
4498INFO : (05-17 07:44:54) plan unit: [id:1102201829] [2018-07-28 - CTCC - Offsite]
4499INFO : (05-17 07:44:54) plan unit: [id:1102201830] [2018-08-04 - CTCC - Offsite]
4500INFO : (05-17 07:44:54) plan unit: [id:1102201831] [2018-08-11 - CTCC - Offsite]
4501INFO : (05-17 07:44:54) plan unit: [id:1102201832] [2018-08-18 - CTCC - Offsite]
4502INFO : (05-17 07:44:54) plan unit: [id:1102201833] [2018-08-25 - CTCC - Offsite]
4503INFO : (05-17 07:44:54) plan unit: [id:1102201834] [2018-09-01 - CTCC - Offsite]
4504INFO : (05-17 07:44:54) plan unit: [id:1103201821] [2018-06-02 - CTCC - Offsite (2)]
4505INFO : (05-17 07:44:54) plan unit: [id:1103201822] [2018-06-09 - CTCC - Offsite (2)]
4506INFO : (05-17 07:44:54) plan unit: [id:1103201823] [2018-06-16 - CTCC - Offsite (2)]
4507INFO : (05-17 07:44:54) plan unit: [id:1103201824] [2018-06-23 - CTCC - Offsite (2)]
4508INFO : (05-17 07:44:54) plan unit: [id:1103201825] [2018-06-30 - CTCC - Offsite (2)]
4509INFO : (05-17 07:44:54) plan unit: [id:1103201826] [2018-07-07 - CTCC - Offsite (2)]
4510INFO : (05-17 07:44:54) plan unit: [id:1103201827] [2018-07-14 - CTCC - Offsite (2)]
4511INFO : (05-17 07:44:54) plan unit: [id:1103201828] [2018-07-21 - CTCC - Offsite (2)]
4512INFO : (05-17 07:44:54) plan unit: [id:1103201829] [2018-07-28 - CTCC - Offsite (2)]
4513INFO : (05-17 07:44:54) plan unit: [id:1103201830] [2018-08-04 - CTCC - Offsite (2)]
4514INFO : (05-17 07:44:54) plan unit: [id:1103201831] [2018-08-11 - CTCC - Offsite (2)]
4515INFO : (05-17 07:44:54) plan unit: [id:1103201832] [2018-08-18 - CTCC - Offsite (2)]
4516INFO : (05-17 07:44:54) plan unit: [id:1103201833] [2018-08-25 - CTCC - Offsite (2)]
4517INFO : (05-17 07:44:54) plan unit: [id:1103201834] [2018-09-01 - CTCC - Offsite (2)]
4518INFO : (05-17 07:44:54) plan unit: [id:1104201821] [2018-06-02 - CTCC PM]
4519INFO : (05-17 07:44:54) plan unit: [id:1104201822] [2018-06-09 - CTCC PM]
4520INFO : (05-17 07:44:54) plan unit: [id:1104201823] [2018-06-16 - CTCC PM]
4521INFO : (05-17 07:44:54) plan unit: [id:1104201824] [2018-06-23 - CTCC PM]
4522INFO : (05-17 07:44:54) plan unit: [id:1104201825] [2018-06-30 - CTCC PM]
4523INFO : (05-17 07:44:54) plan unit: [id:1104201826] [2018-07-07 - CTCC PM]
4524INFO : (05-17 07:44:54) plan unit: [id:1104201827] [2018-07-14 - CTCC PM]
4525INFO : (05-17 07:44:54) plan unit: [id:1104201828] [2018-07-21 - CTCC PM]
4526INFO : (05-17 07:44:54) plan unit: [id:1104201829] [2018-07-28 - CTCC PM]
4527INFO : (05-17 07:44:54) plan unit: [id:1104201830] [2018-08-04 - CTCC PM]
4528INFO : (05-17 07:44:54) plan unit: [id:1104201831] [2018-08-11 - CTCC PM]
4529INFO : (05-17 07:44:54) plan unit: [id:1104201832] [2018-08-18 - CTCC PM]
4530INFO : (05-17 07:44:54) plan unit: [id:1104201833] [2018-08-25 - CTCC PM]
4531INFO : (05-17 07:44:54) plan unit: [id:1104201834] [2018-09-01 - CTCC PM]
4532INFO : (05-17 07:44:54) plan unit: [id:1112201821] [2018-06-02 - BW2]
4533INFO : (05-17 07:44:54) plan unit: [id:1112201822] [2018-06-09 - BW2]
4534INFO : (05-17 07:44:54) plan unit: [id:1112201823] [2018-06-16 - BW2]
4535INFO : (05-17 07:44:54) plan unit: [id:1112201824] [2018-06-23 - BW2]
4536INFO : (05-17 07:44:54) plan unit: [id:1112201825] [2018-06-30 - BW2]
4537INFO : (05-17 07:44:54) plan unit: [id:1112201826] [2018-07-07 - BW2]
4538INFO : (05-17 07:44:54) plan unit: [id:1112201827] [2018-07-14 - BW2]
4539INFO : (05-17 07:44:54) plan unit: [id:1112201828] [2018-07-21 - BW2]
4540INFO : (05-17 07:44:54) plan unit: [id:1112201829] [2018-07-28 - BW2]
4541INFO : (05-17 07:44:54) plan unit: [id:1112201830] [2018-08-04 - BW2]
4542INFO : (05-17 07:44:54) plan unit: [id:1112201831] [2018-08-11 - BW2]
4543INFO : (05-17 07:44:54) plan unit: [id:1112201832] [2018-08-18 - BW2]
4544INFO : (05-17 07:44:54) plan unit: [id:1112201833] [2018-08-25 - BW2]
4545INFO : (05-17 07:44:54) plan unit: [id:1112201834] [2018-09-01 - BW2]
4546INFO : (05-17 07:44:54) plan unit: [id:1113201821] [2018-06-02 - BW3]
4547INFO : (05-17 07:44:54) plan unit: [id:1113201822] [2018-06-09 - BW3]
4548INFO : (05-17 07:44:54) plan unit: [id:1113201823] [2018-06-16 - BW3]
4549INFO : (05-17 07:44:54) plan unit: [id:1113201824] [2018-06-23 - BW3]
4550INFO : (05-17 07:44:54) plan unit: [id:1113201825] [2018-06-30 - BW3]
4551INFO : (05-17 07:44:54) plan unit: [id:1113201826] [2018-07-07 - BW3]
4552INFO : (05-17 07:44:54) plan unit: [id:1113201827] [2018-07-14 - BW3]
4553INFO : (05-17 07:44:54) plan unit: [id:1113201828] [2018-07-21 - BW3]
4554INFO : (05-17 07:44:54) plan unit: [id:1113201829] [2018-07-28 - BW3]
4555INFO : (05-17 07:44:54) plan unit: [id:1113201830] [2018-08-04 - BW3]
4556INFO : (05-17 07:44:54) plan unit: [id:1113201831] [2018-08-11 - BW3]
4557INFO : (05-17 07:44:54) plan unit: [id:1113201832] [2018-08-18 - BW3]
4558INFO : (05-17 07:44:54) plan unit: [id:1113201833] [2018-08-25 - BW3]
4559INFO : (05-17 07:44:54) plan unit: [id:1113201834] [2018-09-01 - BW3]
4560INFO : (05-17 07:44:54) plan unit: [id:1114201821] [2018-06-02 - BW4]
4561INFO : (05-17 07:44:54) plan unit: [id:1114201822] [2018-06-09 - BW4]
4562INFO : (05-17 07:44:54) plan unit: [id:1114201823] [2018-06-16 - BW4]
4563INFO : (05-17 07:44:54) plan unit: [id:1114201824] [2018-06-23 - BW4]
4564INFO : (05-17 07:44:54) plan unit: [id:1114201825] [2018-06-30 - BW4]
4565INFO : (05-17 07:44:54) plan unit: [id:1114201826] [2018-07-07 - BW4]
4566INFO : (05-17 07:44:54) plan unit: [id:1114201827] [2018-07-14 - BW4]
4567INFO : (05-17 07:44:54) plan unit: [id:1114201828] [2018-07-21 - BW4]
4568INFO : (05-17 07:44:54) plan unit: [id:1114201829] [2018-07-28 - BW4]
4569INFO : (05-17 07:44:54) plan unit: [id:1114201830] [2018-08-04 - BW4]
4570INFO : (05-17 07:44:54) plan unit: [id:1114201831] [2018-08-11 - BW4]
4571INFO : (05-17 07:44:54) plan unit: [id:1114201832] [2018-08-18 - BW4]
4572INFO : (05-17 07:44:54) plan unit: [id:1114201833] [2018-08-25 - BW4]
4573INFO : (05-17 07:44:54) plan unit: [id:1114201834] [2018-09-01 - BW4]
4574INFO : (05-17 07:44:54) plan unit: [id:1115201821] [2018-06-02 - BW5]
4575INFO : (05-17 07:44:54) plan unit: [id:1115201822] [2018-06-09 - BW5]
4576INFO : (05-17 07:44:54) plan unit: [id:1115201823] [2018-06-16 - BW5]
4577INFO : (05-17 07:44:54) plan unit: [id:1115201824] [2018-06-23 - BW5]
4578INFO : (05-17 07:44:54) plan unit: [id:1115201825] [2018-06-30 - BW5]
4579INFO : (05-17 07:44:54) plan unit: [id:1115201826] [2018-07-07 - BW5]
4580INFO : (05-17 07:44:54) plan unit: [id:1115201827] [2018-07-14 - BW5]
4581INFO : (05-17 07:44:54) plan unit: [id:1115201828] [2018-07-21 - BW5]
4582INFO : (05-17 07:44:54) plan unit: [id:1115201829] [2018-07-28 - BW5]
4583INFO : (05-17 07:44:54) plan unit: [id:1115201830] [2018-08-04 - BW5]
4584INFO : (05-17 07:44:54) plan unit: [id:1115201831] [2018-08-11 - BW5]
4585INFO : (05-17 07:44:54) plan unit: [id:1115201832] [2018-08-18 - BW5]
4586INFO : (05-17 07:44:54) plan unit: [id:1115201833] [2018-08-25 - BW5]
4587INFO : (05-17 07:44:54) plan unit: [id:1115201834] [2018-09-01 - BW5]
4588INFO : (05-17 07:44:54) plan unit: [id:1116201822] [2018-06-03 - BW2]
4589INFO : (05-17 07:44:54) plan unit: [id:1116201823] [2018-06-10 - BW2]
4590INFO : (05-17 07:44:54) plan unit: [id:1116201824] [2018-06-17 - BW2]
4591INFO : (05-17 07:44:54) plan unit: [id:1116201825] [2018-06-24 - BW2]
4592INFO : (05-17 07:44:54) plan unit: [id:1116201826] [2018-07-01 - BW2]
4593INFO : (05-17 07:44:54) plan unit: [id:1116201827] [2018-07-08 - BW2]
4594INFO : (05-17 07:44:54) plan unit: [id:1116201828] [2018-07-15 - BW2]
4595INFO : (05-17 07:44:54) plan unit: [id:1116201829] [2018-07-22 - BW2]
4596INFO : (05-17 07:44:54) plan unit: [id:1116201830] [2018-07-29 - BW2]
4597INFO : (05-17 07:44:54) plan unit: [id:1116201831] [2018-08-05 - BW2]
4598INFO : (05-17 07:44:54) plan unit: [id:1116201832] [2018-08-12 - BW2]
4599INFO : (05-17 07:44:54) plan unit: [id:1116201833] [2018-08-19 - BW2]
4600INFO : (05-17 07:44:54) plan unit: [id:1116201834] [2018-08-26 - BW2]
4601INFO : (05-17 07:44:54) plan unit: [id:1116201835] [2018-09-02 - BW2]
4602INFO : (05-17 07:44:54) plan unit: [id:1117201822] [2018-06-03 - BW3]
4603INFO : (05-17 07:44:54) plan unit: [id:1117201823] [2018-06-10 - BW3]
4604INFO : (05-17 07:44:54) plan unit: [id:1117201824] [2018-06-17 - BW3]
4605INFO : (05-17 07:44:54) plan unit: [id:1117201825] [2018-06-24 - BW3]
4606INFO : (05-17 07:44:54) plan unit: [id:1117201826] [2018-07-01 - BW3]
4607INFO : (05-17 07:44:54) plan unit: [id:1117201827] [2018-07-08 - BW3]
4608INFO : (05-17 07:44:54) plan unit: [id:1117201828] [2018-07-15 - BW3]
4609INFO : (05-17 07:44:54) plan unit: [id:1117201829] [2018-07-22 - BW3]
4610INFO : (05-17 07:44:54) plan unit: [id:1117201830] [2018-07-29 - BW3]
4611INFO : (05-17 07:44:54) plan unit: [id:1117201831] [2018-08-05 - BW3]
4612INFO : (05-17 07:44:54) plan unit: [id:1117201832] [2018-08-12 - BW3]
4613INFO : (05-17 07:44:54) plan unit: [id:1117201833] [2018-08-19 - BW3]
4614INFO : (05-17 07:44:54) plan unit: [id:1117201834] [2018-08-26 - BW3]
4615INFO : (05-17 07:44:54) plan unit: [id:1117201835] [2018-09-02 - BW3]
4616INFO : (05-17 07:44:54) plan unit: [id:1118201822] [2018-06-03 - BW4]
4617INFO : (05-17 07:44:54) plan unit: [id:1118201823] [2018-06-10 - BW4]
4618INFO : (05-17 07:44:54) plan unit: [id:1118201824] [2018-06-17 - BW4]
4619INFO : (05-17 07:44:54) plan unit: [id:1118201825] [2018-06-24 - BW4]
4620INFO : (05-17 07:44:54) plan unit: [id:1118201826] [2018-07-01 - BW4]
4621INFO : (05-17 07:44:54) plan unit: [id:1118201827] [2018-07-08 - BW4]
4622INFO : (05-17 07:44:54) plan unit: [id:1118201828] [2018-07-15 - BW4]
4623INFO : (05-17 07:44:54) plan unit: [id:1118201829] [2018-07-22 - BW4]
4624INFO : (05-17 07:44:54) plan unit: [id:1118201830] [2018-07-29 - BW4]
4625INFO : (05-17 07:44:54) plan unit: [id:1118201831] [2018-08-05 - BW4]
4626INFO : (05-17 07:44:54) plan unit: [id:1118201832] [2018-08-12 - BW4]
4627INFO : (05-17 07:44:54) plan unit: [id:1118201833] [2018-08-19 - BW4]
4628INFO : (05-17 07:44:54) plan unit: [id:1118201834] [2018-08-26 - BW4]
4629INFO : (05-17 07:44:54) plan unit: [id:1118201835] [2018-09-02 - BW4]
4630INFO : (05-17 07:44:54) plan unit: [id:1119201822] [2018-06-03 - BW5]
4631INFO : (05-17 07:44:54) plan unit: [id:1119201823] [2018-06-10 - BW5]
4632INFO : (05-17 07:44:54) plan unit: [id:1119201824] [2018-06-17 - BW5]
4633INFO : (05-17 07:44:54) plan unit: [id:1119201825] [2018-06-24 - BW5]
4634INFO : (05-17 07:44:54) plan unit: [id:1119201826] [2018-07-01 - BW5]
4635INFO : (05-17 07:44:54) plan unit: [id:1119201827] [2018-07-08 - BW5]
4636INFO : (05-17 07:44:54) plan unit: [id:1119201828] [2018-07-15 - BW5]
4637INFO : (05-17 07:44:54) plan unit: [id:1119201829] [2018-07-22 - BW5]
4638INFO : (05-17 07:44:54) plan unit: [id:1119201830] [2018-07-29 - BW5]
4639INFO : (05-17 07:44:54) plan unit: [id:1119201831] [2018-08-05 - BW5]
4640INFO : (05-17 07:44:54) plan unit: [id:1119201832] [2018-08-12 - BW5]
4641INFO : (05-17 07:44:54) plan unit: [id:1119201833] [2018-08-19 - BW5]
4642INFO : (05-17 07:44:54) plan unit: [id:1119201834] [2018-08-26 - BW5]
4643INFO : (05-17 07:44:54) plan unit: [id:1119201835] [2018-09-02 - BW5]
4644 (145.0ms) select
4645 coalesce(max(
4646 case
4647 when (ct.max_weekday_assignments > 0) then 1
4648 else 0
4649 end
4650 ), 0) as weekday_flag,
4651 coalesce(max(
4652 case
4653 when (ct.max_weekend_assignments > 0) then 1
4654 else 0
4655 end
4656 ), 0) as weekend_flag
4657 from
4658 buffer_auto_populate_slots_1621795380 as aps
4659 inner join call_types as ct
4660 on aps.call_type_id = ct.id
4661
4662 (146.6ms) delete ca
4663 from buffer_combined_availabilities_1621795380 as ca
4664 inner join (
4665 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
4666 sum(lac.assignments_count) as assignments_count
4667 from (
4668 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4669 from buffer_combined_availabilities_1621795380 as ca
4670 inner join buffer_schedules_1621795380 as sc
4671 on ca.schedule_id = sc.id
4672 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4673 order by null
4674 ) as ca_sc
4675 inner join buffer_linkage_assignments_count_weeks_1621795380 as lac
4676 on ca_sc.linkage_instance_id = lac.linkage_instance_id
4677 and ca_sc.schedule_on = lac.schedule_on
4678 inner join buffer_assignment_limit_staff_types_1621795380 as alst
4679 on lac.assignment_limit_id = alst.assignment_limit_id
4680 and ca_sc.staff_type_id = alst.staff_type_id
4681 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
4682 order by null
4683 ) as lac
4684 on ca.linkage_instance_id = lac.linkage_instance_id
4685 and ca.staff_id = lac.staff_id
4686 inner join assignment_limits as al
4687 on lac.assignment_limit_id = al.id
4688 left join buffer_staff_assignments_count_weeks_1621795380 as sac
4689 on lac.assignment_limit_id = sac.assignment_limit_id
4690 and lac.staff_id = sac.staff_id
4691 and lac.start_date = sac.start_date
4692 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_weekly_limit
4693
4694 (143.4ms) delete ca
4695 from buffer_combined_availabilities_1621795380 as ca
4696 inner join (
4697 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
4698 count(distinct if(sac.id is null, lac.schedule_on, null)) as assignments_count
4699 from (
4700 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4701 from buffer_combined_availabilities_1621795380 as ca
4702 inner join buffer_schedules_1621795380 as sc
4703 on ca.schedule_id = sc.id
4704 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4705 order by null
4706 ) as ca_sc
4707 inner join buffer_linkage_assignments_count_consecutive_1621795380 as lac
4708 on ca_sc.linkage_instance_id = lac.linkage_instance_id
4709 and ca_sc.schedule_on = lac.schedule_on
4710 inner join buffer_assignment_limit_staff_types_1621795380 as alst
4711 on lac.assignment_limit_id = alst.assignment_limit_id
4712 and ca_sc.staff_type_id = alst.staff_type_id
4713 left join buffer_staff_assignments_count_consecutive_1621795380 as sac
4714 on lac.assignment_limit_id = sac.assignment_limit_id
4715 and ca_sc.staff_id = sac.staff_id
4716 and lac.schedule_on = sac.schedule_on
4717 and lac.start_date = sac.start_date
4718 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
4719 order by null
4720 ) as lac
4721 on ca.linkage_instance_id = lac.linkage_instance_id
4722 and ca.staff_id = lac.staff_id
4723 inner join assignment_limits as al
4724 on lac.assignment_limit_id = al.id
4725 left join (
4726 select assignment_limit_id, staff_id, start_date,
4727 count(schedule_on) as assignments_count
4728 from buffer_staff_assignments_count_consecutive_1621795380
4729 group by assignment_limit_id, staff_id, start_date
4730 ) as sac
4731 on lac.assignment_limit_id = sac.assignment_limit_id
4732 and lac.staff_id = sac.staff_id
4733 and lac.start_date = sac.start_date
4734 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_consecutive_limit
4735
4736 (409.4ms) delete ca
4737 from buffer_combined_availabilities_1621795380 as ca
4738 inner join (
4739 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
4740 sum(lac.assignments_count) as assignments_count
4741 from (
4742 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4743 from buffer_combined_availabilities_1621795380 as ca
4744 inner join buffer_schedules_1621795380 as sc
4745 on ca.schedule_id = sc.id
4746 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4747 order by null
4748 ) as ca_sc
4749 inner join buffer_linkage_assignments_count_periods_1621795380 as lac
4750 on ca_sc.linkage_instance_id = lac.linkage_instance_id
4751 and ca_sc.schedule_on = lac.schedule_on
4752 inner join buffer_assignment_limit_staff_types_1621795380 as alst
4753 on lac.assignment_limit_id = alst.assignment_limit_id
4754 and ca_sc.staff_type_id = alst.staff_type_id
4755 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
4756 order by null
4757 ) as lac
4758 on ca.linkage_instance_id = lac.linkage_instance_id
4759 and ca.staff_id = lac.staff_id
4760 inner join assignment_limits as al
4761 on lac.assignment_limit_id = al.id
4762 left join buffer_staff_assignments_count_periods_1621795380 as sac
4763 on lac.assignment_limit_id = sac.assignment_limit_id
4764 and lac.staff_id = sac.staff_id
4765 and lac.start_date = sac.start_date
4766 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_per_period_limit
4767
4768 (139.8ms) delete ca
4769 from buffer_combined_availabilities_1621795380 as ca
4770 inner join (
4771 select ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date,
4772 sum(lac.assignments_count) as assignments_count
4773 from (
4774 select ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4775 from buffer_combined_availabilities_1621795380 as ca
4776 inner join buffer_schedules_1621795380 as sc
4777 on ca.schedule_id = sc.id
4778 group by ca.staff_id, ca.staff_type_id, sc.linkage_instance_id, sc.schedule_on
4779 order by null
4780 ) as ca_sc
4781 inner join buffer_linkage_assignments_count_rolling_1621795380 as lac
4782 on ca_sc.linkage_instance_id = lac.linkage_instance_id
4783 and ca_sc.schedule_on = lac.schedule_on
4784 inner join buffer_assignment_limit_staff_types_1621795380 as alst
4785 on lac.assignment_limit_id = alst.assignment_limit_id
4786 and ca_sc.staff_type_id = alst.staff_type_id
4787 group by ca_sc.linkage_instance_id, lac.assignment_limit_id, ca_sc.staff_id, lac.start_date
4788 order by null
4789 ) as lac
4790 on ca.linkage_instance_id = lac.linkage_instance_id
4791 and ca.staff_id = lac.staff_id
4792 inner join assignment_limits as al
4793 on lac.assignment_limit_id = al.id
4794 left join buffer_staff_assignments_count_rolling_1621795380 as sac
4795 on lac.assignment_limit_id = sac.assignment_limit_id
4796 and lac.staff_id = sac.staff_id
4797 and lac.start_date = sac.start_date
4798 where (lac.assignments_count + ifnull(sac.assignments_count, 0)) > al.max_rolling_limit
4799
4800 (186.5ms) /* NegativeLinkRule */
4801 delete ca
4802 from buffer_combined_availabilities_1621795380 as ca use index (ix_buffer_combined_availabilities_composite_1)
4803 inner join buffer_negative_relations_1621795380 as nr use index (ix_buffer_negative_relations_composite_1)
4804 on ca.schedule_id = nr.schedule_id
4805 and ca.staff_id = nr.staff_id
4806
4807 (138.7ms) /* SpecializationOverlapRule */
4808 delete ca
4809 from buffer_combined_availabilities_1621795380 as ca use index (ix_buffer_combined_availabilities_composite_1)
4810 inner join buffer_schedules_1621795380 as sc
4811 on ca.schedule_id = sc.id
4812 inner join buffer_staff_specializations_1621795380 as ssp
4813 on ca.staff_id = ssp.staff_id
4814 inner join max_applicable_call_types as mact
4815 on ssp.specialization_id = mact.specialization_id
4816 and sc.call_type_id = mact.call_type_id
4817 inner join buffer_specialization_daily_counts_1621795380 as sdc use index (ix_buffer_specialization_daily_counts_composite_1)
4818 on ssp.specialization_id = sdc.specialization_id
4819 and sc.schedule_on = sdc.schedule_on
4820 and sdc.staff_id is null
4821 left join buffer_specialization_daily_counts_1621795380 as sdc_2 use index (ix_buffer_specialization_daily_counts_composite_1)
4822 on ssp.specialization_id = sdc_2.specialization_id
4823 and sc.schedule_on = sdc_2.schedule_on
4824 and ca.staff_id = sdc_2.staff_id
4825 where sdc.should_be_evaluated = 1
4826 and (sdc.staffs_scheduled + if(sdc_2.id is null, 1, 0)) > sdc.max_scheduled
4827
4828 (156.3ms) /* BrokenLinkageRule */
4829 truncate table buffer_combined_availability_linkages_1621795380
4830
4831 (164.8ms) insert into buffer_combined_availability_linkages_1621795380 (
4832 staff_id,
4833 linkage_instance_id,
4834 slots_count,
4835 is_primary,
4836 has_violations
4837 )
4838 select
4839 staff_id,
4840 linkage_instance_id,
4841 count(1) as slots_count,
4842 min(is_primary) as is_primary,
4843 max(has_violations) as has_violations
4844 from buffer_combined_availabilities_1621795380 use index (ix_buffer_combined_availabilities_composite_2)
4845 group by
4846 staff_id,
4847 linkage_instance_id
4848 order by null
4849
4850 (199.3ms) delete ca
4851 from
4852 buffer_combined_availabilities_1621795380 as ca use index (ix_buffer_combined_availabilities_composite_1)
4853 inner join buffer_schedules_1621795380 as sc
4854 on ca.schedule_id = sc.id
4855 inner join buffer_linkages_1621795380 as l
4856 on sc.linkage_instance_id = l.linkage_instance_id
4857 inner join buffer_combined_availability_linkages_1621795380 as ls_1 use index (ix_buffer_combined_availability_linkages_composite_1)
4858 on ca.staff_id = ls_1.staff_id
4859 and sc.linkage_instance_id = ls_1.linkage_instance_id
4860 left join buffer_schedule_linkages_1621795380 as ls_2 use index (ix_buffer_schedule_linkages_composite_1)
4861 on ca.staff_id = ls_2.staff_id
4862 and sc.linkage_instance_id = ls_2.linkage_instance_id
4863 where (ls_1.slots_count + coalesce(ls_2.slots_count, 0)) < l.slots_count_total /* not covering the whole chain */;
4864
4865 (187.1ms) select straight_join
4866 sc.schedule_on,
4867 sc.call_type_id,
4868 count(distinct ca.staff_id) as available_members_count,
4869 group_concat(
4870 distinct concat(if(ls_1.is_primary = 1, 'p', 's'), ca.staff_id)
4871 order by ls_1.is_primary desc, ca.staff_id
4872 separator ', '
4873 ) as available_members_ids,
4874 sc.linkage_instance_id,
4875 l.slots_count_total as linkage_slots_count
4876 from buffer_combined_availabilities_1621795380 as ca
4877 inner join buffer_schedules_1621795380 as sc
4878 on ca.schedule_id = sc.id
4879 inner join buffer_linkages_1621795380 as l
4880 on sc.linkage_instance_id = l.linkage_instance_id
4881 inner join buffer_combined_availability_linkages_1621795380 as ls_1 use index (ix_buffer_combined_availability_linkages_composite_1)
4882 on ca.staff_id = ls_1.staff_id
4883 and sc.linkage_instance_id = ls_1.linkage_instance_id
4884 and ls_1.has_violations = 0
4885 where sc.should_be_evaluated = 1
4886 and sc.should_be_populated = 1
4887 group by sc.schedule_on, sc.call_type_id, sc.linkage_instance_id, l.slots_count_total
4888 order by available_members_count, sc.schedule_on, sc.display_order
4889 limit 1
4890
4891 (139.5ms) truncate table buffer_rule_scores_1621795380
4892
4893 (138.8ms) truncate table buffer_rule_calc_filters_1621795380
4894
4895 (138.8ms) insert into buffer_rule_calc_filters_1621795380 (
4896 linkage_instance_id,
4897 staff_id
4898 ) values (15201821, 17223)
4899
4900 (141.2ms) /* CallDaysRule */
4901 insert into buffer_rule_scores_1621795380 (
4902 linkage_instance_id,
4903 schedule_id,
4904 staff_id,
4905 rule_name,
4906 value
4907 )
4908 select
4909 b_schedules.linkage_instance_id,
4910 b_schedules.id as schedule_id,
4911 availabilities.staff_id,
4912 'CallDaysRule' as _rule_name,
4913 (min(abs(datediff(b_schedules.schedule_on, rc_schedules.schedule_on))) div 7) as value
4914 from
4915 buffer_rule_calc_filters_1621795380 as filters
4916 inner join buffer_schedules_1621795380 as b_schedules
4917 on filters.linkage_instance_id = b_schedules.linkage_instance_id
4918 inner join buffer_combined_availabilities_1621795380 as availabilities
4919 on b_schedules.id = availabilities.schedule_id
4920 and filters.staff_id = availabilities.staff_id
4921 left join buffer_rule_calc_schedules_1621795380 as rc_schedules
4922 on availabilities.staff_id = rc_schedules.staff_id
4923 and b_schedules.day_of_week_mask = rc_schedules.day_of_week_mask
4924 group by
4925 b_schedules.linkage_instance_id,
4926 b_schedules.id,
4927 availabilities.staff_id,
4928 _rule_name
4929 order by null
4930
4931 (146.1ms) /* CumulativePointTargetsRule */
4932 insert into buffer_rule_scores_1621795380 (
4933 linkage_instance_id,
4934 schedule_id,
4935 staff_id,
4936 rule_name,
4937 value
4938 )
4939 select
4940 b_schedules.linkage_instance_id,
4941 b_schedules.id as schedule_id,
4942 availabilities.staff_id,
4943 'CumulativePointTargetsRule' as rule_name,
4944 ((b_targets.raw_target - b_targets.scheduled) /
4945 b_targets.raw_target) as value
4946 from
4947 buffer_rule_calc_filters_1621795380 as filters
4948 inner join buffer_schedules_1621795380 as b_schedules
4949 on filters.linkage_instance_id = b_schedules.linkage_instance_id
4950 inner join buffer_combined_availabilities_1621795380 as availabilities
4951 on b_schedules.id = availabilities.schedule_id
4952 and filters.staff_id = availabilities.staff_id
4953 inner join buffer_cumulative_point_targets_1621795380 as b_targets
4954 on availabilities.staff_id = b_targets.staff_id
4955 and b_schedules.is_weekend = b_targets.is_weekend
4956 and b_schedules.calendar_schedule_id = b_targets.calendar_schedule_id
4957 order by null;
4958
4959 (144.7ms) /* CurrentPointTargetsRule */
4960 insert into buffer_rule_scores_1621795380 (
4961 linkage_instance_id,
4962 schedule_id,
4963 staff_id,
4964 rule_name,
4965 value
4966 )
4967 select
4968 b_schedules.linkage_instance_id,
4969 b_schedules.id as schedule_id,
4970 availabilities.staff_id,
4971 'CurrentPointTargetsRule' as rule_name,
4972 ((b_targets.adjusted_target - b_targets.scheduled) / b_targets.adjusted_target) as value
4973 from
4974 buffer_rule_calc_filters_1621795380 as filters
4975 inner join buffer_schedules_1621795380 as b_schedules
4976 on filters.linkage_instance_id = b_schedules.linkage_instance_id
4977 inner join buffer_combined_availabilities_1621795380 as availabilities
4978 on b_schedules.id = availabilities.schedule_id
4979 and filters.staff_id = availabilities.staff_id
4980 inner join buffer_current_point_targets_1621795380 as b_targets
4981 on availabilities.staff_id = b_targets.staff_id
4982 and b_schedules.is_weekend = b_targets.is_weekend
4983 and b_schedules.period_offset = b_targets.period_offset
4984 and b_schedules.calendar_schedule_id = b_targets.calendar_schedule_id
4985 order by null
4986
4987 (144.0ms) truncate table buffer_rule_scores_with_corrections_1621795380
4988
4989 (141.9ms) insert into buffer_rule_scores_with_corrections_1621795380 (
4990 linkage_instance_id, schedule_id, staff_id, rule_name, value
4991 )
4992 select rule_scores.linkage_instance_id, rule_scores.schedule_id, rule_scores.staff_id, rule_scores.rule_name,
4993 ifnull(rule_scores.value, max_values.max_value + 1) as value
4994 from buffer_rule_scores_1621795380 as rule_scores
4995 inner join (
4996 select rule_name, max(value) as max_value
4997 from buffer_rule_scores_1621795380
4998 group by rule_name
4999 order by null
5000 ) as max_values
5001 on rule_scores.rule_name = max_values.rule_name
5002 order by null
5003
5004 (144.0ms) select linkage_instance_id, staff_id, avg(slot_scores) as scores
5005 from (
5006 select rule_scores.linkage_instance_id, rule_scores.schedule_id, rule_scores.staff_id,
5007 sum(
5008 if((total_values.total_value > 0), (rule_scores.value / total_values.total_value), 0) *
5009 rules.weight *
5010 total_values.slots_count
5011 ) as slot_scores
5012 from buffer_rule_scores_with_corrections_1621795380 as rule_scores
5013 inner join (
5014 select rule_name, sum(abs(value)) as total_value,
5015 count(distinct schedule_id) as slots_count
5016 from buffer_rule_scores_with_corrections_1621795380
5017 group by rule_name
5018 order by null
5019 ) as total_values
5020 on rule_scores.rule_name = total_values.rule_name
5021 inner join rules
5022 on rule_scores.rule_name = rules.type
5023 where rules.rule_set_id = 1232
5024 and rules.applied = 1
5025 group by rule_scores.linkage_instance_id, rule_scores.schedule_id, rule_scores.staff_id
5026 order by null
5027 ) as staff_scores
5028 group by linkage_instance_id, staff_id
5029 order by round(avg(slot_scores), 5) desc, rand()
5030 limit 1
5031
5032 PublishedBlock Load (149.5ms) SELECT `published_blocks`.* FROM `published_blocks` INNER JOIN `blocks` ON `blocks`.`id` = `published_blocks`.`block_id` WHERE `published_blocks`.`client_id` = 261 AND ('2018-06-01' BETWEEN blocks.start_date AND blocks.end_date) AND `published_blocks`.`calendar_schedule_id` = 1167 ORDER BY `published_blocks`.`id` ASC LIMIT 1
5033 PublishedBlockCallType Load (140.9ms) SELECT `published_block_call_types`.* FROM `published_block_call_types` WHERE `published_block_call_types`.`published_block_id` = 90489 AND `published_block_call_types`.`assignment_type` = 'CallType' AND `published_block_call_types`.`assignment_id` = 10168 ORDER BY `published_block_call_types`.`id` ASC LIMIT 1
5034 (139.4ms) BEGIN
5035 (147.0ms) SELECT COALESCE(pb.updated_at, pbct.updated_at)
5036 FROM call_types AS ct
5037 INNER JOIN calendar_schedules AS cs
5038 ON ct.calendar_schedule_id = cs.id
5039 INNER JOIN blocks AS b
5040 ON b.client_id = ct.client_id
5041 AND b.block_schedule_id = cs.block_schedule_id
5042 AND '2018-06-01' BETWEEN b.start_date AND b.end_date
5043 INNER JOIN published_blocks AS pb
5044 ON pb.client_id = ct.client_id
5045 AND pb.block_id = b.id
5046 AND pb.calendar_schedule_id = cs.id
5047 LEFT JOIN published_block_call_types AS pbct
5048 ON pbct.client_id = ct.client_id
5049 AND pbct.assignment_id = ct.id
5050 AND pbct.assignment_type = 'CallType'
5051 AND pbct.block_id = b.id
5052 AND (
5053 (1 << (DAYOFWEEK('2018-06-01') - 1) & pbct.days_of_week_mask) > 0
5054 )
5055 WHERE ct.id = 10168
5056 AND (
5057 (
5058 pb.assignment_ids IS NULL
5059 AND (1 << (DAYOFWEEK('2018-06-01') - 1) & pb.days_of_week_mask) > 0
5060 )
5061 OR pbct.id IS NOT NULL
5062 )
5063
5064 CallType Load (152.3ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`id` = 10168 LIMIT 1
5065 Client Load (301.5ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
5066 Staff Load (429.6ms) SELECT `staffs`.* FROM `staffs` WHERE `staffs`.`id` = 17223 LIMIT 1
5067 Schedule Exists (156.8ms) SELECT 1 AS one FROM `schedules` WHERE `schedules`.`call_type_id` = 10168 AND `schedules`.`client_id` = 261 AND `schedules`.`schedule_on` = '2018-06-01' LIMIT 1
5068 SQL (171.4ms) INSERT INTO `schedules` (`client_id`, `call_type_id`, `staff_id`, `schedule_on`, `created_at`, `updated_at`, `weekend_on`, `dayofweek_on`, `populate_method`, `creator_id`) VALUES (261, 10168, 17223, '2018-06-01', '2018-05-17 07:45:02', '2018-05-17 07:45:02', 0, 6, 'auto_populate_step', 27770)
5069 VisibleAssignment Load (140.3ms) SELECT `visible_assignments`.* FROM `visible_assignments` WHERE `visible_assignments`.`client_id` = 261 AND `visible_assignments`.`date` = '2018-06-01' AND `visible_assignments`.`assignment_type` = 'CallType' AND `visible_assignments`.`assignment_id` = 10168 ORDER BY `visible_assignments`.`id` ASC LIMIT 1
5070 (138.7ms) COMMIT
5071FLUSHED: nil:nil
5072 PublishedBlock Load (139.6ms) SELECT `published_blocks`.* FROM `published_blocks` INNER JOIN `blocks` ON `blocks`.`id` = `published_blocks`.`block_id` WHERE `published_blocks`.`client_id` = 261 AND ('2018-06-01' BETWEEN blocks.start_date AND blocks.end_date) AND `published_blocks`.`calendar_schedule_id` = 1167 ORDER BY `published_blocks`.`id` ASC LIMIT 1
5073 PublishedBlockCallType Load (139.9ms) SELECT `published_block_call_types`.* FROM `published_block_call_types` WHERE `published_block_call_types`.`published_block_id` = 90489 AND `published_block_call_types`.`assignment_type` = 'CallType' AND `published_block_call_types`.`assignment_id` = 10958 ORDER BY `published_block_call_types`.`id` ASC LIMIT 1
5074INFO : (05-17 07:45:03) Not creating schedule because of call type linkage behavior settings: [2018-06-01 - CHDay 2]
5075 PublishedBlock Load (156.3ms) SELECT `published_blocks`.* FROM `published_blocks` INNER JOIN `blocks` ON `blocks`.`id` = `published_blocks`.`block_id` WHERE `published_blocks`.`client_id` = 261 AND ('2018-06-02' BETWEEN blocks.start_date AND blocks.end_date) AND `published_blocks`.`calendar_schedule_id` = 1167 ORDER BY `published_blocks`.`id` ASC LIMIT 1
5076 PublishedBlockCallType Load (138.6ms) SELECT `published_block_call_types`.* FROM `published_block_call_types` WHERE `published_block_call_types`.`published_block_id` = 90489 AND `published_block_call_types`.`assignment_type` = 'CallType' AND `published_block_call_types`.`assignment_id` = 10167 ORDER BY `published_block_call_types`.`id` ASC LIMIT 1
5077 (138.3ms) BEGIN
5078 (140.4ms) SELECT COALESCE(pb.updated_at, pbct.updated_at)
5079 FROM call_types AS ct
5080 INNER JOIN calendar_schedules AS cs
5081 ON ct.calendar_schedule_id = cs.id
5082 INNER JOIN blocks AS b
5083 ON b.client_id = ct.client_id
5084 AND b.block_schedule_id = cs.block_schedule_id
5085 AND '2018-06-02' BETWEEN b.start_date AND b.end_date
5086 INNER JOIN published_blocks AS pb
5087 ON pb.client_id = ct.client_id
5088 AND pb.block_id = b.id
5089 AND pb.calendar_schedule_id = cs.id
5090 LEFT JOIN published_block_call_types AS pbct
5091 ON pbct.client_id = ct.client_id
5092 AND pbct.assignment_id = ct.id
5093 AND pbct.assignment_type = 'CallType'
5094 AND pbct.block_id = b.id
5095 AND (
5096 (1 << (DAYOFWEEK('2018-06-02') - 1) & pbct.days_of_week_mask) > 0
5097 )
5098 WHERE ct.id = 10167
5099 AND (
5100 (
5101 pb.assignment_ids IS NULL
5102 AND (1 << (DAYOFWEEK('2018-06-02') - 1) & pb.days_of_week_mask) > 0
5103 )
5104 OR pbct.id IS NOT NULL
5105 )
5106
5107 CallType Load (178.9ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`id` = 10167 LIMIT 1
5108 Client Load (849.2ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
5109 Staff Load (140.1ms) SELECT `staffs`.* FROM `staffs` WHERE `staffs`.`id` = 17223 LIMIT 1
5110 Schedule Exists (137.6ms) SELECT 1 AS one FROM `schedules` WHERE `schedules`.`call_type_id` = 10167 AND `schedules`.`client_id` = 261 AND `schedules`.`schedule_on` = '2018-06-02' LIMIT 1
5111 SQL (143.4ms) INSERT INTO `schedules` (`client_id`, `call_type_id`, `staff_id`, `schedule_on`, `created_at`, `updated_at`, `weekend_on`, `dayofweek_on`, `populate_method`, `creator_id`) VALUES (261, 10167, 17223, '2018-06-02', '2018-05-17 07:45:05', '2018-05-17 07:45:05', 1, 7, 'auto_populate_step', 27770)
5112 VisibleAssignment Load (138.3ms) SELECT `visible_assignments`.* FROM `visible_assignments` WHERE `visible_assignments`.`client_id` = 261 AND `visible_assignments`.`date` = '2018-06-02' AND `visible_assignments`.`assignment_type` = 'CallType' AND `visible_assignments`.`assignment_id` = 10167 ORDER BY `visible_assignments`.`id` ASC LIMIT 1
5113 (140.0ms) COMMIT
5114FLUSHED: nil:nil
5115 PublishedBlock Load (142.9ms) SELECT `published_blocks`.* FROM `published_blocks` INNER JOIN `blocks` ON `blocks`.`id` = `published_blocks`.`block_id` WHERE `published_blocks`.`client_id` = 261 AND ('2018-06-03' BETWEEN blocks.start_date AND blocks.end_date) AND `published_blocks`.`calendar_schedule_id` = 1167 ORDER BY `published_blocks`.`id` ASC LIMIT 1
5116 PublishedBlockCallType Load (138.4ms) SELECT `published_block_call_types`.* FROM `published_block_call_types` WHERE `published_block_call_types`.`published_block_id` = 90489 AND `published_block_call_types`.`assignment_type` = 'CallType' AND `published_block_call_types`.`assignment_id` = 10168 ORDER BY `published_block_call_types`.`id` ASC LIMIT 1
5117 (137.1ms) BEGIN
5118 (140.2ms) SELECT COALESCE(pb.updated_at, pbct.updated_at)
5119 FROM call_types AS ct
5120 INNER JOIN calendar_schedules AS cs
5121 ON ct.calendar_schedule_id = cs.id
5122 INNER JOIN blocks AS b
5123 ON b.client_id = ct.client_id
5124 AND b.block_schedule_id = cs.block_schedule_id
5125 AND '2018-06-03' BETWEEN b.start_date AND b.end_date
5126 INNER JOIN published_blocks AS pb
5127 ON pb.client_id = ct.client_id
5128 AND pb.block_id = b.id
5129 AND pb.calendar_schedule_id = cs.id
5130 LEFT JOIN published_block_call_types AS pbct
5131 ON pbct.client_id = ct.client_id
5132 AND pbct.assignment_id = ct.id
5133 AND pbct.assignment_type = 'CallType'
5134 AND pbct.block_id = b.id
5135 AND (
5136 (1 << (DAYOFWEEK('2018-06-03') - 1) & pbct.days_of_week_mask) > 0
5137 )
5138 WHERE ct.id = 10168
5139 AND (
5140 (
5141 pb.assignment_ids IS NULL
5142 AND (1 << (DAYOFWEEK('2018-06-03') - 1) & pb.days_of_week_mask) > 0
5143 )
5144 OR pbct.id IS NOT NULL
5145 )
5146
5147 CallType Load (139.7ms) SELECT `call_types`.* FROM `call_types` WHERE `call_types`.`id` = 10168 LIMIT 1
5148 Client Load (278.1ms) SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 261 LIMIT 1
5149 Staff Load (141.0ms) SELECT `staffs`.* FROM `staffs` WHERE `staffs`.`id` = 17223 LIMIT 1
5150 Schedule Exists (136.6ms) SELECT 1 AS one FROM `schedules` WHERE `schedules`.`call_type_id` = 10168 AND `schedules`.`client_id` = 261 AND `schedules`.`schedule_on` = '2018-06-03' LIMIT 1
5151 SQL (142.1ms) INSERT INTO `schedules` (`client_id`, `call_type_id`, `staff_id`, `schedule_on`, `created_at`, `updated_at`, `weekend_on`, `dayofweek_on`, `populate_method`, `creator_id`) VALUES (261, 10168, 17223, '2018-06-03', '2018-05-17 07:45:07', '2018-05-17 07:45:07', 1, 1, 'auto_populate_step', 27770)
5152 VisibleAssignment Load (138.2ms) SELECT `visible_assignments`.* FROM `visible_assignments` WHERE `visible_assignments`.`client_id` = 261 AND `visible_assignments`.`date` = '2018-06-03' AND `visible_assignments`.`assignment_type` = 'CallType' AND `visible_assignments`.`assignment_id` = 10168 ORDER BY `visible_assignments`.`id` ASC LIMIT 1
5153 (143.5ms) COMMIT
5154FLUSHED: nil:nil
5155 (138.7ms) UPDATE buffer_schedules_1621795380
5156 SET staff_id = 17223,
5157 should_be_populated = 0,
5158 should_be_evaluated = 0
5159 WHERE
5160 call_type_id = 10168
5161 AND schedule_on = '2018-06-01'
5162
5163 (153.1ms) delete from buffer_combined_availabilities_1621795380
5164 where linkage_instance_id = 15201821
5165
5166 (137.0ms) UPDATE buffer_rule_calc_schedules_1621795380
5167 SET staff_id = 17223
5168 WHERE call_type_id = 10168
5169 AND schedule_on = '2018-06-01'
5170
5171 (139.5ms) INSERT INTO buffer_rule_calc_schedules_1621795380
5172 SET staff_id = 17223,
5173 call_type_id = 10168,
5174 schedule_on = '2018-06-01',
5175 day_of_week_mask = 32
5176
5177 (145.9ms) /* NegativeLinkRule */
5178 UPDATE buffer_negative_relations_1621795380
5179 SET staff_id = 17223
5180 WHERE affected_by_schedule_id = (
5181 SELECT id
5182 FROM buffer_schedules_1621795380
5183 WHERE schedule_on = '2018-06-01'
5184 AND call_type_id = 10168
5185 )
5186
5187 (142.1ms) /* SpecializationOverlapRule */
5188 update buffer_staff_specializations_1621795380 as st_sp
5189 inner join max_applicable_call_types as mact
5190 on st_sp.specialization_id = mact.specialization_id
5191 and mact.call_type_id = 10168
5192 inner join buffer_specialization_daily_counts_1621795380 as sp_dc
5193 on st_sp.specialization_id = sp_dc.specialization_id
5194 and sp_dc.staff_id is null
5195 and sp_dc.schedule_on = '2018-06-01'
5196 left join buffer_specialization_daily_counts_1621795380 as sp_dc_2
5197 on st_sp.specialization_id = sp_dc_2.specialization_id
5198 and st_sp.staff_id = sp_dc_2.staff_id
5199 and sp_dc_2.schedule_on = '2018-06-01'
5200 set sp_dc.staffs_scheduled = sp_dc.staffs_scheduled + 1
5201 where st_sp.staff_id = 17223
5202 and sp_dc_2.id is null
5203
5204 (139.8ms) insert into buffer_specialization_daily_counts_1621795380 (
5205 specialization_id, staff_id, schedule_on, staffs_scheduled, max_scheduled, should_be_evaluated
5206 )
5207 select sp.id as specialization_id,
5208 17223 as staff_id,
5209 '2018-06-01' as schedule_on,
5210 1 as staffs_scheduled,
5211 sp.max_scheduled,
5212 sp_dc.should_be_evaluated
5213 from buffer_staff_specializations_1621795380 as st_sp
5214 inner join specializations as sp
5215 on st_sp.specialization_id = sp.id
5216 inner join max_applicable_call_types as mact
5217 on st_sp.specialization_id = mact.specialization_id
5218 and mact.call_type_id = 10168
5219 inner join buffer_specialization_daily_counts_1621795380 as sp_dc
5220 on st_sp.specialization_id = sp_dc.specialization_id
5221 and sp_dc.staff_id is null
5222 and sp_dc.schedule_on = '2018-06-01'
5223 left join buffer_specialization_daily_counts_1621795380 as sp_dc_2
5224 on st_sp.specialization_id = sp_dc_2.specialization_id
5225 and st_sp.staff_id = sp_dc_2.staff_id
5226 and sp_dc_2.schedule_on = '2018-06-01'
5227 where st_sp.staff_id = 17223
5228 and sp_dc_2.id is null
5229
5230 (140.9ms) /* MaxAssignmentsRule */
5231 delete from buffer_linkage_call_type_assignments_1621795380
5232 where linkage_instance_id = 15201821;
5233
5234 (139.9ms) /* MaxAssignmentsRule */
5235 update
5236 buffer_schedules_1621795380 as sc
5237 inner join call_types as ct
5238 on sc.call_type_id = ct.id
5239 and ct.active = 1
5240 inner join buffer_call_type_assignments_1621795380 as cta
5241 on sc.staff_id = cta.staff_id
5242 and sc.call_type_id = cta.call_type_id
5243 and sc.is_weekend = cta.is_weekend
5244 and sc.period_offset = cta.period_offset
5245 and sc.calendar_schedule_id = cta.calendar_schedule_id
5246 set cta.assignments_count = cta.assignments_count + 1
5247 where
5248 sc.schedule_on = '2018-06-01'
5249 and sc.call_type_id = 10168
5250 and sc.staff_id = 17223
5251
5252 (140.9ms) insert into buffer_call_type_assignments_1621795380 (
5253 staff_id,
5254 call_type_id,
5255 is_weekend,
5256 period_offset,
5257 calendar_schedule_id,
5258 assignments_count
5259 )
5260 select
5261 sc.staff_id,
5262 sc.call_type_id,
5263 sc.is_weekend,
5264 sc.period_offset,
5265 sc.calendar_schedule_id,
5266 1 as assignments_count
5267 from buffer_schedules_1621795380 as sc
5268 where
5269 sc.staff_id = 17223
5270 and sc.schedule_on = '2018-06-01'
5271 and sc.call_type_id = 10168
5272
5273 (138.4ms) /* UnassignedDaysRule */
5274 delete from buffer_linkage_assigned_days_1621795380
5275 where linkage_instance_id = 15201821
5276
5277 (140.4ms) /* UnassignedDaysRule */
5278 UPDATE buffer_staff_assigned_days_1621795380 as sad
5279 inner join call_types as ct
5280 on ct.id = 10168
5281 and ct.unassigned_day = 0
5282 SET sad.is_assigned = 1
5283 WHERE sad.staff_id = 17223
5284 AND sad.schedule_on = '2018-06-01'
5285
5286 (138.0ms) truncate table buffer_tmp_targets_scheduled_1621795380
5287
5288 (144.8ms) insert into buffer_tmp_targets_scheduled_1621795380 (
5289 block_id,
5290 calendar_schedule_id,
5291 staff_id,
5292 assignment_id,
5293 assignment_type,
5294 day_of_week_mask,
5295 is_weekend,
5296 scheduled,
5297 other_scheduled
5298 )
5299 select
5300 pt.block_id,
5301 pt.calendar_schedule_id,
5302 pt.staff_id,
5303 0 as assignment_id,
5304 '' as assignment_type,
5305 0 as day_of_week_mask,
5306 pt.is_weekend,
5307 case
5308 when (sc.calendar_schedule_id = pt.calendar_schedule_id) then ci.points
5309 else 0.0
5310 end as scheduled,
5311 case
5312 when (sc.calendar_schedule_id != pt.calendar_schedule_id) then ci.points
5313 else 0.0
5314 end as other_scheduled
5315 from
5316 buffer_schedules_1621795380 as sc
5317 inner join buffer_counter_increments_1621795380 as ci
5318 on sc.id = ci.schedule_id
5319 and ci.points != 0
5320 inner join assign_staff_types as ast
5321 on sc.staff_id = ast.staff_id
5322 and sc.schedule_on between ast.begin_date and coalesce(ast.end_date, '9999-12-31')
5323 inner join staff_types as st
5324 on ast.staff_type_id = st.id
5325 inner join buffer_point_targets_1621795380 as pt
5326 on sc.block_id = pt.block_id
5327 and st.point_hour_schedule_id = pt.calendar_schedule_id
5328 and sc.staff_id = pt.staff_id
5329 and sc.is_weekend = pt.is_weekend
5330 where
5331 sc.schedule_on = '2018-06-01'
5332 and sc.call_type_id = 10168
5333 and sc.staff_id = 17223
5334 order by null
5335
5336 (145.3ms) select 1 from buffer_tmp_targets_scheduled_1621795380
5337
5338 (145.2ms) update
5339 buffer_tmp_targets_scheduled_1621795380 as sch_t
5340 inner join buffer_point_targets_1621795380 as pt
5341 on sch_t.block_id = pt.block_id
5342 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5343 and sch_t.staff_id = pt.staff_id
5344 and sch_t.is_weekend = pt.is_weekend
5345 set
5346 pt.scheduled = pt.scheduled + sch_t.scheduled,
5347 pt.scheduled_delta = sch_t.scheduled,
5348 pt.other_scheduled = pt.other_scheduled + sch_t.other_scheduled,
5349 pt.other_scheduled_delta = sch_t.other_scheduled
5350
5351 (433.7ms) select 1 from buffer_tmp_targets_scheduled_1621795380
5352 where other_scheduled != 0
5353
5354 (142.9ms) update
5355 buffer_current_point_targets_1621795380 as cr_pt
5356 inner join (
5357 select
5358 pt.staff_id,
5359 part_of_week.is_weekend,
5360 td.period_offset,
5361 pt.calendar_schedule_id,
5362 sum(pt.raw_target_delta) as raw_target_delta,
5363 sum(pt.target_delta) as adjusted_target_delta,
5364 sum(pt.scheduled_delta) as scheduled_delta,
5365 sum(pt.other_scheduled_delta) as other_scheduled_delta
5366 from
5367 buffer_tmp_targets_scheduled_1621795380 as sch_t
5368 inner join buffer_target_dates as td
5369 on td.session_id = 1621795380
5370 and sch_t.block_id = td.block_id
5371 and sch_t.calendar_schedule_id = td.calendar_schedule_id
5372 inner join buffer_point_targets_1621795380 as pt
5373 on sch_t.block_id = pt.block_id
5374 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5375 and (
5376 sch_t.staff_id = pt.staff_id
5377 or sch_t.other_scheduled != 0
5378 )
5379 and sch_t.is_weekend = pt.is_weekend
5380 inner join (
5381 select 0 as is_weekend
5382 union select 1
5383
5384 ) as part_of_week
5385 on sch_t.is_weekend = part_of_week.is_weekend
5386 or part_of_week.is_weekend = -1
5387 group by
5388 pt.staff_id,
5389 part_of_week.is_weekend,
5390 td.period_offset,
5391 pt.calendar_schedule_id
5392 order by null
5393 ) as pt
5394 on cr_pt.staff_id = pt.staff_id
5395 and cr_pt.is_weekend = pt.is_weekend
5396 and cr_pt.period_offset = pt.period_offset
5397 and cr_pt.calendar_schedule_id = pt.calendar_schedule_id
5398 set
5399 cr_pt.raw_target = cr_pt.raw_target + pt.raw_target_delta,
5400 cr_pt.adjusted_target = cr_pt.adjusted_target + pt.adjusted_target_delta,
5401 cr_pt.scheduled = cr_pt.scheduled + pt.scheduled_delta,
5402 cr_pt.other_scheduled = cr_pt.other_scheduled + pt.other_scheduled_delta
5403
5404 (170.0ms) update
5405 buffer_cumulative_point_targets_1621795380 as cu_pt
5406 inner join (
5407 select
5408 pt.staff_id,
5409 part_of_week.is_weekend,
5410 pt.calendar_schedule_id,
5411 sum(pt.raw_target_delta) as raw_target_delta,
5412 sum(pt.target_delta) as adjusted_target_delta,
5413 sum(pt.scheduled_delta) as scheduled_delta,
5414 sum(pt.other_scheduled_delta) as other_scheduled_delta
5415 from
5416 buffer_tmp_targets_scheduled_1621795380 as sch_t
5417 inner join buffer_target_dates as td
5418 on td.session_id = 1621795380
5419 and sch_t.block_id = td.block_id
5420 and sch_t.calendar_schedule_id = td.calendar_schedule_id
5421 and td.within_cumulative_period = 1
5422 inner join buffer_point_targets_1621795380 as pt
5423 on sch_t.block_id = pt.block_id
5424 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5425 and (
5426 sch_t.staff_id = pt.staff_id
5427 or sch_t.other_scheduled != 0
5428 )
5429 and sch_t.is_weekend = pt.is_weekend
5430 inner join (
5431 select 0 as is_weekend
5432 union select 1
5433
5434 ) as part_of_week
5435 on sch_t.is_weekend = part_of_week.is_weekend
5436 or part_of_week.is_weekend = -1
5437 group by
5438 pt.staff_id,
5439 part_of_week.is_weekend,
5440 pt.calendar_schedule_id
5441 order by null
5442 ) as pt
5443 on cu_pt.staff_id = pt.staff_id
5444 and cu_pt.is_weekend = pt.is_weekend
5445 and cu_pt.calendar_schedule_id = pt.calendar_schedule_id
5446 set
5447 cu_pt.raw_target = cu_pt.raw_target + pt.raw_target_delta,
5448 cu_pt.adjusted_target = cu_pt.adjusted_target + pt.adjusted_target_delta,
5449 cu_pt.scheduled = cu_pt.scheduled + pt.scheduled_delta,
5450 cu_pt.other_scheduled = cu_pt.other_scheduled + pt.other_scheduled_delta
5451
5452 (148.7ms) update
5453 buffer_tmp_targets_scheduled_1621795380 as sch_t
5454 inner join buffer_point_targets_1621795380 as pt
5455 on sch_t.block_id = pt.block_id
5456 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5457 and (
5458 sch_t.staff_id = pt.staff_id
5459 or sch_t.other_scheduled != 0
5460 )
5461 and sch_t.is_weekend = pt.is_weekend
5462 set
5463 pt.raw_target_delta = 0,
5464 pt.target_delta = 0,
5465 pt.scheduled_delta = 0,
5466 pt.other_scheduled_delta = 0
5467
5468 (153.7ms) /* AssignmentLimitsPerPeriod */
5469 /* Unique Key: assignment_limit_id, staff_id, start_date */
5470 insert into buffer_staff_assignments_count_periods_1621795380 (
5471 assignment_limit_id, staff_id, start_date, end_date, assignments_count
5472 )
5473 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
5474 1 as assignments_count
5475 from buffer_schedules_1621795380 as sc
5476 inner join buffer_assignment_limit_call_types_1621795380 as alct
5477 on sc.call_type_id = alct.call_type_id
5478 inner join assignment_limits as al
5479 on alct.assignment_limit_id = al.id
5480 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5481 and al.max_per_period_limit is not null
5482 inner join assign_staff_types as ast
5483 on sc.staff_id = ast.staff_id
5484 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
5485 inner join buffer_assignment_limit_staff_types_1621795380 as alst
5486 on alct.assignment_limit_id = alst.assignment_limit_id
5487 and ast.staff_type_id = alst.staff_type_id
5488 inner join (
5489 select assignment_limit_id, start_date, end_date
5490 from buffer_linkage_assignments_count_periods_1621795380
5491 group by assignment_limit_id, start_date, end_date
5492 order by null
5493 ) as lac
5494 on alct.assignment_limit_id = lac.assignment_limit_id
5495 and sc.schedule_on between lac.start_date and lac.end_date
5496 where sc.schedule_on = '2018-06-01'
5497 and sc.call_type_id = 10168
5498 and sc.staff_id = 17223
5499 on duplicate key update
5500 assignments_count = assignments_count + 1
5501
5502 (145.3ms) /* AssignmentLimitsPerWeek */
5503 /* Unique Key: assignment_limit_id, staff_id, start_date */
5504 insert into buffer_staff_assignments_count_weeks_1621795380 (
5505 assignment_limit_id, staff_id, start_date, end_date, assignments_count
5506 )
5507 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
5508 1 as assignments_count
5509 from buffer_schedules_1621795380 as sc
5510 inner join buffer_assignment_limit_call_types_1621795380 as alct
5511 on sc.call_type_id = alct.call_type_id
5512 inner join assignment_limits as al
5513 on alct.assignment_limit_id = al.id
5514 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5515 and al.max_weekly_limit is not null
5516 inner join assign_staff_types as ast
5517 on sc.staff_id = ast.staff_id
5518 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
5519 inner join buffer_assignment_limit_staff_types_1621795380 as alst
5520 on alct.assignment_limit_id = alst.assignment_limit_id
5521 and ast.staff_type_id = alst.staff_type_id
5522 inner join (
5523 select assignment_limit_id, start_date, end_date
5524 from buffer_linkage_assignments_count_weeks_1621795380
5525 group by assignment_limit_id, start_date, end_date
5526 order by null
5527 ) as lac
5528 on alct.assignment_limit_id = lac.assignment_limit_id
5529 and sc.schedule_on between lac.start_date and lac.end_date
5530 where sc.schedule_on = '2018-06-01'
5531 and sc.call_type_id = 10168
5532 and sc.staff_id = 17223
5533 on duplicate key update
5534 assignments_count = assignments_count + 1
5535
5536 (614.0ms) /* AssignmentLimitsRolling */
5537 /* Unique Key: assignment_limit_id, staff_id, start_date */
5538 insert into buffer_staff_assignments_count_rolling_1621795380 (
5539 assignment_limit_id, staff_id, start_date, end_date, assignments_count
5540 )
5541 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
5542 1 as assignments_count
5543 from buffer_schedules_1621795380 as sc
5544 inner join buffer_assignment_limit_call_types_1621795380 as alct
5545 on sc.call_type_id = alct.call_type_id
5546 inner join assignment_limits as al
5547 on alct.assignment_limit_id = al.id
5548 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5549 and al.max_rolling_period is not null
5550 and al.max_rolling_limit is not null
5551 inner join assign_staff_types as ast
5552 on sc.staff_id = ast.staff_id
5553 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
5554 inner join buffer_assignment_limit_staff_types_1621795380 as alst
5555 on alct.assignment_limit_id = alst.assignment_limit_id
5556 and ast.staff_type_id = alst.staff_type_id
5557 inner join (
5558 select assignment_limit_id, start_date, end_date
5559 from buffer_linkage_assignments_count_rolling_1621795380
5560 group by assignment_limit_id, start_date, end_date
5561 order by null
5562 ) as lac
5563 on alct.assignment_limit_id = lac.assignment_limit_id
5564 and sc.schedule_on between lac.start_date and lac.end_date
5565 where sc.schedule_on = '2018-06-01'
5566 and sc.call_type_id = 10168
5567 and sc.staff_id = 17223
5568 on duplicate key update
5569 assignments_count = assignments_count + 1
5570
5571 (188.5ms) /* AssignmentLimitsConsecutive */
5572 /* Unique Key: assignment_limit_id, staff_id, schedule_on, start_date */
5573 insert ignore into buffer_staff_assignments_count_consecutive_1621795380 (
5574 assignment_limit_id, staff_id, schedule_on, start_date, end_date
5575 )
5576 select lac.assignment_limit_id, sc.staff_id, sc.schedule_on, lac.start_date, lac.end_date
5577 from buffer_schedules_1621795380 as sc
5578 inner join buffer_assignment_limit_call_types_1621795380 as alct
5579 on sc.call_type_id = alct.call_type_id
5580 inner join assignment_limits as al
5581 on alct.assignment_limit_id = al.id
5582 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5583 and al.max_consecutive_limit is not null
5584 inner join assign_staff_types as ast
5585 on sc.staff_id = ast.staff_id
5586 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
5587 inner join buffer_assignment_limit_staff_types_1621795380 as alst
5588 on alct.assignment_limit_id = alst.assignment_limit_id
5589 and ast.staff_type_id = alst.staff_type_id
5590 inner join (
5591 select assignment_limit_id, start_date, end_date
5592 from buffer_linkage_assignments_count_consecutive_1621795380
5593 group by assignment_limit_id, start_date, end_date
5594 order by null
5595 ) as lac
5596 on alct.assignment_limit_id = lac.assignment_limit_id
5597 and sc.schedule_on between lac.start_date and lac.end_date
5598 where sc.schedule_on = '2018-06-01'
5599 and sc.call_type_id = 10168
5600 and sc.staff_id = 17223
5601
5602 (143.6ms) UPDATE buffer_schedules_1621795380
5603 SET staff_id = 17223,
5604 should_be_populated = 0,
5605 should_be_evaluated = 0
5606 WHERE
5607 call_type_id = 10167
5608 AND schedule_on = '2018-06-02'
5609
5610 (138.3ms) delete from buffer_combined_availabilities_1621795380
5611 where linkage_instance_id = 15201821
5612
5613 (144.4ms) UPDATE buffer_rule_calc_schedules_1621795380
5614 SET staff_id = 17223
5615 WHERE call_type_id = 10167
5616 AND schedule_on = '2018-06-02'
5617
5618 (150.2ms) INSERT INTO buffer_rule_calc_schedules_1621795380
5619 SET staff_id = 17223,
5620 call_type_id = 10167,
5621 schedule_on = '2018-06-02',
5622 day_of_week_mask = 64
5623
5624 (150.3ms) /* NegativeLinkRule */
5625 UPDATE buffer_negative_relations_1621795380
5626 SET staff_id = 17223
5627 WHERE affected_by_schedule_id = (
5628 SELECT id
5629 FROM buffer_schedules_1621795380
5630 WHERE schedule_on = '2018-06-02'
5631 AND call_type_id = 10167
5632 )
5633
5634 (138.3ms) /* SpecializationOverlapRule */
5635 update buffer_staff_specializations_1621795380 as st_sp
5636 inner join max_applicable_call_types as mact
5637 on st_sp.specialization_id = mact.specialization_id
5638 and mact.call_type_id = 10167
5639 inner join buffer_specialization_daily_counts_1621795380 as sp_dc
5640 on st_sp.specialization_id = sp_dc.specialization_id
5641 and sp_dc.staff_id is null
5642 and sp_dc.schedule_on = '2018-06-02'
5643 left join buffer_specialization_daily_counts_1621795380 as sp_dc_2
5644 on st_sp.specialization_id = sp_dc_2.specialization_id
5645 and st_sp.staff_id = sp_dc_2.staff_id
5646 and sp_dc_2.schedule_on = '2018-06-02'
5647 set sp_dc.staffs_scheduled = sp_dc.staffs_scheduled + 1
5648 where st_sp.staff_id = 17223
5649 and sp_dc_2.id is null
5650
5651 (138.5ms) insert into buffer_specialization_daily_counts_1621795380 (
5652 specialization_id, staff_id, schedule_on, staffs_scheduled, max_scheduled, should_be_evaluated
5653 )
5654 select sp.id as specialization_id,
5655 17223 as staff_id,
5656 '2018-06-02' as schedule_on,
5657 1 as staffs_scheduled,
5658 sp.max_scheduled,
5659 sp_dc.should_be_evaluated
5660 from buffer_staff_specializations_1621795380 as st_sp
5661 inner join specializations as sp
5662 on st_sp.specialization_id = sp.id
5663 inner join max_applicable_call_types as mact
5664 on st_sp.specialization_id = mact.specialization_id
5665 and mact.call_type_id = 10167
5666 inner join buffer_specialization_daily_counts_1621795380 as sp_dc
5667 on st_sp.specialization_id = sp_dc.specialization_id
5668 and sp_dc.staff_id is null
5669 and sp_dc.schedule_on = '2018-06-02'
5670 left join buffer_specialization_daily_counts_1621795380 as sp_dc_2
5671 on st_sp.specialization_id = sp_dc_2.specialization_id
5672 and st_sp.staff_id = sp_dc_2.staff_id
5673 and sp_dc_2.schedule_on = '2018-06-02'
5674 where st_sp.staff_id = 17223
5675 and sp_dc_2.id is null
5676
5677 (143.7ms) /* MaxAssignmentsRule */
5678 delete from buffer_linkage_call_type_assignments_1621795380
5679 where linkage_instance_id = 15201821;
5680
5681 (137.5ms) /* MaxAssignmentsRule */
5682 update
5683 buffer_schedules_1621795380 as sc
5684 inner join call_types as ct
5685 on sc.call_type_id = ct.id
5686 and ct.active = 1
5687 inner join buffer_call_type_assignments_1621795380 as cta
5688 on sc.staff_id = cta.staff_id
5689 and sc.call_type_id = cta.call_type_id
5690 and sc.is_weekend = cta.is_weekend
5691 and sc.period_offset = cta.period_offset
5692 and sc.calendar_schedule_id = cta.calendar_schedule_id
5693 set cta.assignments_count = cta.assignments_count + 1
5694 where
5695 sc.schedule_on = '2018-06-02'
5696 and sc.call_type_id = 10167
5697 and sc.staff_id = 17223
5698
5699 (144.5ms) insert into buffer_call_type_assignments_1621795380 (
5700 staff_id,
5701 call_type_id,
5702 is_weekend,
5703 period_offset,
5704 calendar_schedule_id,
5705 assignments_count
5706 )
5707 select
5708 sc.staff_id,
5709 sc.call_type_id,
5710 sc.is_weekend,
5711 sc.period_offset,
5712 sc.calendar_schedule_id,
5713 1 as assignments_count
5714 from buffer_schedules_1621795380 as sc
5715 where
5716 sc.staff_id = 17223
5717 and sc.schedule_on = '2018-06-02'
5718 and sc.call_type_id = 10167
5719
5720 (137.4ms) /* UnassignedDaysRule */
5721 delete from buffer_linkage_assigned_days_1621795380
5722 where linkage_instance_id = 15201821
5723
5724 (154.1ms) /* UnassignedDaysRule */
5725 UPDATE buffer_staff_assigned_days_1621795380 as sad
5726 inner join call_types as ct
5727 on ct.id = 10167
5728 and ct.unassigned_day = 0
5729 SET sad.is_assigned = 1
5730 WHERE sad.staff_id = 17223
5731 AND sad.schedule_on = '2018-06-02'
5732
5733 (138.5ms) truncate table buffer_tmp_targets_scheduled_1621795380
5734
5735 (179.5ms) insert into buffer_tmp_targets_scheduled_1621795380 (
5736 block_id,
5737 calendar_schedule_id,
5738 staff_id,
5739 assignment_id,
5740 assignment_type,
5741 day_of_week_mask,
5742 is_weekend,
5743 scheduled,
5744 other_scheduled
5745 )
5746 select
5747 pt.block_id,
5748 pt.calendar_schedule_id,
5749 pt.staff_id,
5750 0 as assignment_id,
5751 '' as assignment_type,
5752 0 as day_of_week_mask,
5753 pt.is_weekend,
5754 case
5755 when (sc.calendar_schedule_id = pt.calendar_schedule_id) then ci.points
5756 else 0.0
5757 end as scheduled,
5758 case
5759 when (sc.calendar_schedule_id != pt.calendar_schedule_id) then ci.points
5760 else 0.0
5761 end as other_scheduled
5762 from
5763 buffer_schedules_1621795380 as sc
5764 inner join buffer_counter_increments_1621795380 as ci
5765 on sc.id = ci.schedule_id
5766 and ci.points != 0
5767 inner join assign_staff_types as ast
5768 on sc.staff_id = ast.staff_id
5769 and sc.schedule_on between ast.begin_date and coalesce(ast.end_date, '9999-12-31')
5770 inner join staff_types as st
5771 on ast.staff_type_id = st.id
5772 inner join buffer_point_targets_1621795380 as pt
5773 on sc.block_id = pt.block_id
5774 and st.point_hour_schedule_id = pt.calendar_schedule_id
5775 and sc.staff_id = pt.staff_id
5776 and sc.is_weekend = pt.is_weekend
5777 where
5778 sc.schedule_on = '2018-06-02'
5779 and sc.call_type_id = 10167
5780 and sc.staff_id = 17223
5781 order by null
5782
5783 (139.1ms) select 1 from buffer_tmp_targets_scheduled_1621795380
5784
5785 (147.3ms) update
5786 buffer_tmp_targets_scheduled_1621795380 as sch_t
5787 inner join buffer_point_targets_1621795380 as pt
5788 on sch_t.block_id = pt.block_id
5789 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5790 and sch_t.staff_id = pt.staff_id
5791 and sch_t.is_weekend = pt.is_weekend
5792 set
5793 pt.scheduled = pt.scheduled + sch_t.scheduled,
5794 pt.scheduled_delta = sch_t.scheduled,
5795 pt.other_scheduled = pt.other_scheduled + sch_t.other_scheduled,
5796 pt.other_scheduled_delta = sch_t.other_scheduled
5797
5798 (141.0ms) select 1 from buffer_tmp_targets_scheduled_1621795380
5799 where other_scheduled != 0
5800
5801 (146.5ms) update
5802 buffer_current_point_targets_1621795380 as cr_pt
5803 inner join (
5804 select
5805 pt.staff_id,
5806 part_of_week.is_weekend,
5807 td.period_offset,
5808 pt.calendar_schedule_id,
5809 sum(pt.raw_target_delta) as raw_target_delta,
5810 sum(pt.target_delta) as adjusted_target_delta,
5811 sum(pt.scheduled_delta) as scheduled_delta,
5812 sum(pt.other_scheduled_delta) as other_scheduled_delta
5813 from
5814 buffer_tmp_targets_scheduled_1621795380 as sch_t
5815 inner join buffer_target_dates as td
5816 on td.session_id = 1621795380
5817 and sch_t.block_id = td.block_id
5818 and sch_t.calendar_schedule_id = td.calendar_schedule_id
5819 inner join buffer_point_targets_1621795380 as pt
5820 on sch_t.block_id = pt.block_id
5821 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5822 and (
5823 sch_t.staff_id = pt.staff_id
5824 or sch_t.other_scheduled != 0
5825 )
5826 and sch_t.is_weekend = pt.is_weekend
5827 inner join (
5828 select 0 as is_weekend
5829 union select 1
5830
5831 ) as part_of_week
5832 on sch_t.is_weekend = part_of_week.is_weekend
5833 or part_of_week.is_weekend = -1
5834 group by
5835 pt.staff_id,
5836 part_of_week.is_weekend,
5837 td.period_offset,
5838 pt.calendar_schedule_id
5839 order by null
5840 ) as pt
5841 on cr_pt.staff_id = pt.staff_id
5842 and cr_pt.is_weekend = pt.is_weekend
5843 and cr_pt.period_offset = pt.period_offset
5844 and cr_pt.calendar_schedule_id = pt.calendar_schedule_id
5845 set
5846 cr_pt.raw_target = cr_pt.raw_target + pt.raw_target_delta,
5847 cr_pt.adjusted_target = cr_pt.adjusted_target + pt.adjusted_target_delta,
5848 cr_pt.scheduled = cr_pt.scheduled + pt.scheduled_delta,
5849 cr_pt.other_scheduled = cr_pt.other_scheduled + pt.other_scheduled_delta
5850
5851 (142.9ms) update
5852 buffer_cumulative_point_targets_1621795380 as cu_pt
5853 inner join (
5854 select
5855 pt.staff_id,
5856 part_of_week.is_weekend,
5857 pt.calendar_schedule_id,
5858 sum(pt.raw_target_delta) as raw_target_delta,
5859 sum(pt.target_delta) as adjusted_target_delta,
5860 sum(pt.scheduled_delta) as scheduled_delta,
5861 sum(pt.other_scheduled_delta) as other_scheduled_delta
5862 from
5863 buffer_tmp_targets_scheduled_1621795380 as sch_t
5864 inner join buffer_target_dates as td
5865 on td.session_id = 1621795380
5866 and sch_t.block_id = td.block_id
5867 and sch_t.calendar_schedule_id = td.calendar_schedule_id
5868 and td.within_cumulative_period = 1
5869 inner join buffer_point_targets_1621795380 as pt
5870 on sch_t.block_id = pt.block_id
5871 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5872 and (
5873 sch_t.staff_id = pt.staff_id
5874 or sch_t.other_scheduled != 0
5875 )
5876 and sch_t.is_weekend = pt.is_weekend
5877 inner join (
5878 select 0 as is_weekend
5879 union select 1
5880
5881 ) as part_of_week
5882 on sch_t.is_weekend = part_of_week.is_weekend
5883 or part_of_week.is_weekend = -1
5884 group by
5885 pt.staff_id,
5886 part_of_week.is_weekend,
5887 pt.calendar_schedule_id
5888 order by null
5889 ) as pt
5890 on cu_pt.staff_id = pt.staff_id
5891 and cu_pt.is_weekend = pt.is_weekend
5892 and cu_pt.calendar_schedule_id = pt.calendar_schedule_id
5893 set
5894 cu_pt.raw_target = cu_pt.raw_target + pt.raw_target_delta,
5895 cu_pt.adjusted_target = cu_pt.adjusted_target + pt.adjusted_target_delta,
5896 cu_pt.scheduled = cu_pt.scheduled + pt.scheduled_delta,
5897 cu_pt.other_scheduled = cu_pt.other_scheduled + pt.other_scheduled_delta
5898
5899 (174.9ms) update
5900 buffer_tmp_targets_scheduled_1621795380 as sch_t
5901 inner join buffer_point_targets_1621795380 as pt
5902 on sch_t.block_id = pt.block_id
5903 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
5904 and (
5905 sch_t.staff_id = pt.staff_id
5906 or sch_t.other_scheduled != 0
5907 )
5908 and sch_t.is_weekend = pt.is_weekend
5909 set
5910 pt.raw_target_delta = 0,
5911 pt.target_delta = 0,
5912 pt.scheduled_delta = 0,
5913 pt.other_scheduled_delta = 0
5914
5915 (156.8ms) /* AssignmentLimitsPerPeriod */
5916 /* Unique Key: assignment_limit_id, staff_id, start_date */
5917 insert into buffer_staff_assignments_count_periods_1621795380 (
5918 assignment_limit_id, staff_id, start_date, end_date, assignments_count
5919 )
5920 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
5921 1 as assignments_count
5922 from buffer_schedules_1621795380 as sc
5923 inner join buffer_assignment_limit_call_types_1621795380 as alct
5924 on sc.call_type_id = alct.call_type_id
5925 inner join assignment_limits as al
5926 on alct.assignment_limit_id = al.id
5927 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5928 and al.max_per_period_limit is not null
5929 inner join assign_staff_types as ast
5930 on sc.staff_id = ast.staff_id
5931 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
5932 inner join buffer_assignment_limit_staff_types_1621795380 as alst
5933 on alct.assignment_limit_id = alst.assignment_limit_id
5934 and ast.staff_type_id = alst.staff_type_id
5935 inner join (
5936 select assignment_limit_id, start_date, end_date
5937 from buffer_linkage_assignments_count_periods_1621795380
5938 group by assignment_limit_id, start_date, end_date
5939 order by null
5940 ) as lac
5941 on alct.assignment_limit_id = lac.assignment_limit_id
5942 and sc.schedule_on between lac.start_date and lac.end_date
5943 where sc.schedule_on = '2018-06-02'
5944 and sc.call_type_id = 10167
5945 and sc.staff_id = 17223
5946 on duplicate key update
5947 assignments_count = assignments_count + 1
5948
5949 (140.5ms) /* AssignmentLimitsPerWeek */
5950 /* Unique Key: assignment_limit_id, staff_id, start_date */
5951 insert into buffer_staff_assignments_count_weeks_1621795380 (
5952 assignment_limit_id, staff_id, start_date, end_date, assignments_count
5953 )
5954 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
5955 1 as assignments_count
5956 from buffer_schedules_1621795380 as sc
5957 inner join buffer_assignment_limit_call_types_1621795380 as alct
5958 on sc.call_type_id = alct.call_type_id
5959 inner join assignment_limits as al
5960 on alct.assignment_limit_id = al.id
5961 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5962 and al.max_weekly_limit is not null
5963 inner join assign_staff_types as ast
5964 on sc.staff_id = ast.staff_id
5965 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
5966 inner join buffer_assignment_limit_staff_types_1621795380 as alst
5967 on alct.assignment_limit_id = alst.assignment_limit_id
5968 and ast.staff_type_id = alst.staff_type_id
5969 inner join (
5970 select assignment_limit_id, start_date, end_date
5971 from buffer_linkage_assignments_count_weeks_1621795380
5972 group by assignment_limit_id, start_date, end_date
5973 order by null
5974 ) as lac
5975 on alct.assignment_limit_id = lac.assignment_limit_id
5976 and sc.schedule_on between lac.start_date and lac.end_date
5977 where sc.schedule_on = '2018-06-02'
5978 and sc.call_type_id = 10167
5979 and sc.staff_id = 17223
5980 on duplicate key update
5981 assignments_count = assignments_count + 1
5982
5983 (1040.4ms) /* AssignmentLimitsRolling */
5984 /* Unique Key: assignment_limit_id, staff_id, start_date */
5985 insert into buffer_staff_assignments_count_rolling_1621795380 (
5986 assignment_limit_id, staff_id, start_date, end_date, assignments_count
5987 )
5988 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
5989 1 as assignments_count
5990 from buffer_schedules_1621795380 as sc
5991 inner join buffer_assignment_limit_call_types_1621795380 as alct
5992 on sc.call_type_id = alct.call_type_id
5993 inner join assignment_limits as al
5994 on alct.assignment_limit_id = al.id
5995 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
5996 and al.max_rolling_period is not null
5997 and al.max_rolling_limit is not null
5998 inner join assign_staff_types as ast
5999 on sc.staff_id = ast.staff_id
6000 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
6001 inner join buffer_assignment_limit_staff_types_1621795380 as alst
6002 on alct.assignment_limit_id = alst.assignment_limit_id
6003 and ast.staff_type_id = alst.staff_type_id
6004 inner join (
6005 select assignment_limit_id, start_date, end_date
6006 from buffer_linkage_assignments_count_rolling_1621795380
6007 group by assignment_limit_id, start_date, end_date
6008 order by null
6009 ) as lac
6010 on alct.assignment_limit_id = lac.assignment_limit_id
6011 and sc.schedule_on between lac.start_date and lac.end_date
6012 where sc.schedule_on = '2018-06-02'
6013 and sc.call_type_id = 10167
6014 and sc.staff_id = 17223
6015 on duplicate key update
6016 assignments_count = assignments_count + 1
6017
6018 (139.9ms) /* AssignmentLimitsConsecutive */
6019 /* Unique Key: assignment_limit_id, staff_id, schedule_on, start_date */
6020 insert ignore into buffer_staff_assignments_count_consecutive_1621795380 (
6021 assignment_limit_id, staff_id, schedule_on, start_date, end_date
6022 )
6023 select lac.assignment_limit_id, sc.staff_id, sc.schedule_on, lac.start_date, lac.end_date
6024 from buffer_schedules_1621795380 as sc
6025 inner join buffer_assignment_limit_call_types_1621795380 as alct
6026 on sc.call_type_id = alct.call_type_id
6027 inner join assignment_limits as al
6028 on alct.assignment_limit_id = al.id
6029 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
6030 and al.max_consecutive_limit is not null
6031 inner join assign_staff_types as ast
6032 on sc.staff_id = ast.staff_id
6033 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
6034 inner join buffer_assignment_limit_staff_types_1621795380 as alst
6035 on alct.assignment_limit_id = alst.assignment_limit_id
6036 and ast.staff_type_id = alst.staff_type_id
6037 inner join (
6038 select assignment_limit_id, start_date, end_date
6039 from buffer_linkage_assignments_count_consecutive_1621795380
6040 group by assignment_limit_id, start_date, end_date
6041 order by null
6042 ) as lac
6043 on alct.assignment_limit_id = lac.assignment_limit_id
6044 and sc.schedule_on between lac.start_date and lac.end_date
6045 where sc.schedule_on = '2018-06-02'
6046 and sc.call_type_id = 10167
6047 and sc.staff_id = 17223
6048
6049 (140.5ms) UPDATE buffer_schedules_1621795380
6050 SET staff_id = 17223,
6051 should_be_populated = 0,
6052 should_be_evaluated = 0
6053 WHERE
6054 call_type_id = 10168
6055 AND schedule_on = '2018-06-03'
6056
6057 (174.9ms) delete from buffer_combined_availabilities_1621795380
6058 where linkage_instance_id = 15201821
6059
6060 (141.1ms) UPDATE buffer_rule_calc_schedules_1621795380
6061 SET staff_id = 17223
6062 WHERE call_type_id = 10168
6063 AND schedule_on = '2018-06-03'
6064
6065 (139.0ms) INSERT INTO buffer_rule_calc_schedules_1621795380
6066 SET staff_id = 17223,
6067 call_type_id = 10168,
6068 schedule_on = '2018-06-03',
6069 day_of_week_mask = 1
6070
6071 (148.8ms) /* NegativeLinkRule */
6072 UPDATE buffer_negative_relations_1621795380
6073 SET staff_id = 17223
6074 WHERE affected_by_schedule_id = (
6075 SELECT id
6076 FROM buffer_schedules_1621795380
6077 WHERE schedule_on = '2018-06-03'
6078 AND call_type_id = 10168
6079 )
6080
6081 (167.2ms) /* SpecializationOverlapRule */
6082 update buffer_staff_specializations_1621795380 as st_sp
6083 inner join max_applicable_call_types as mact
6084 on st_sp.specialization_id = mact.specialization_id
6085 and mact.call_type_id = 10168
6086 inner join buffer_specialization_daily_counts_1621795380 as sp_dc
6087 on st_sp.specialization_id = sp_dc.specialization_id
6088 and sp_dc.staff_id is null
6089 and sp_dc.schedule_on = '2018-06-03'
6090 left join buffer_specialization_daily_counts_1621795380 as sp_dc_2
6091 on st_sp.specialization_id = sp_dc_2.specialization_id
6092 and st_sp.staff_id = sp_dc_2.staff_id
6093 and sp_dc_2.schedule_on = '2018-06-03'
6094 set sp_dc.staffs_scheduled = sp_dc.staffs_scheduled + 1
6095 where st_sp.staff_id = 17223
6096 and sp_dc_2.id is null
6097
6098 (140.1ms) insert into buffer_specialization_daily_counts_1621795380 (
6099 specialization_id, staff_id, schedule_on, staffs_scheduled, max_scheduled, should_be_evaluated
6100 )
6101 select sp.id as specialization_id,
6102 17223 as staff_id,
6103 '2018-06-03' as schedule_on,
6104 1 as staffs_scheduled,
6105 sp.max_scheduled,
6106 sp_dc.should_be_evaluated
6107 from buffer_staff_specializations_1621795380 as st_sp
6108 inner join specializations as sp
6109 on st_sp.specialization_id = sp.id
6110 inner join max_applicable_call_types as mact
6111 on st_sp.specialization_id = mact.specialization_id
6112 and mact.call_type_id = 10168
6113 inner join buffer_specialization_daily_counts_1621795380 as sp_dc
6114 on st_sp.specialization_id = sp_dc.specialization_id
6115 and sp_dc.staff_id is null
6116 and sp_dc.schedule_on = '2018-06-03'
6117 left join buffer_specialization_daily_counts_1621795380 as sp_dc_2
6118 on st_sp.specialization_id = sp_dc_2.specialization_id
6119 and st_sp.staff_id = sp_dc_2.staff_id
6120 and sp_dc_2.schedule_on = '2018-06-03'
6121 where st_sp.staff_id = 17223
6122 and sp_dc_2.id is null
6123
6124 (151.5ms) /* MaxAssignmentsRule */
6125 delete from buffer_linkage_call_type_assignments_1621795380
6126 where linkage_instance_id = 15201821;
6127
6128 (139.8ms) /* MaxAssignmentsRule */
6129 update
6130 buffer_schedules_1621795380 as sc
6131 inner join call_types as ct
6132 on sc.call_type_id = ct.id
6133 and ct.active = 1
6134 inner join buffer_call_type_assignments_1621795380 as cta
6135 on sc.staff_id = cta.staff_id
6136 and sc.call_type_id = cta.call_type_id
6137 and sc.is_weekend = cta.is_weekend
6138 and sc.period_offset = cta.period_offset
6139 and sc.calendar_schedule_id = cta.calendar_schedule_id
6140 set cta.assignments_count = cta.assignments_count + 1
6141 where
6142 sc.schedule_on = '2018-06-03'
6143 and sc.call_type_id = 10168
6144 and sc.staff_id = 17223
6145
6146 (437.6ms) insert into buffer_call_type_assignments_1621795380 (
6147 staff_id,
6148 call_type_id,
6149 is_weekend,
6150 period_offset,
6151 calendar_schedule_id,
6152 assignments_count
6153 )
6154 select
6155 sc.staff_id,
6156 sc.call_type_id,
6157 sc.is_weekend,
6158 sc.period_offset,
6159 sc.calendar_schedule_id,
6160 1 as assignments_count
6161 from buffer_schedules_1621795380 as sc
6162 where
6163 sc.staff_id = 17223
6164 and sc.schedule_on = '2018-06-03'
6165 and sc.call_type_id = 10168
6166
6167 (138.2ms) /* UnassignedDaysRule */
6168 delete from buffer_linkage_assigned_days_1621795380
6169 where linkage_instance_id = 15201821
6170
6171 (142.1ms) /* UnassignedDaysRule */
6172 UPDATE buffer_staff_assigned_days_1621795380 as sad
6173 inner join call_types as ct
6174 on ct.id = 10168
6175 and ct.unassigned_day = 0
6176 SET sad.is_assigned = 1
6177 WHERE sad.staff_id = 17223
6178 AND sad.schedule_on = '2018-06-03'
6179
6180 (138.9ms) truncate table buffer_tmp_targets_scheduled_1621795380
6181
6182 (143.1ms) insert into buffer_tmp_targets_scheduled_1621795380 (
6183 block_id,
6184 calendar_schedule_id,
6185 staff_id,
6186 assignment_id,
6187 assignment_type,
6188 day_of_week_mask,
6189 is_weekend,
6190 scheduled,
6191 other_scheduled
6192 )
6193 select
6194 pt.block_id,
6195 pt.calendar_schedule_id,
6196 pt.staff_id,
6197 0 as assignment_id,
6198 '' as assignment_type,
6199 0 as day_of_week_mask,
6200 pt.is_weekend,
6201 case
6202 when (sc.calendar_schedule_id = pt.calendar_schedule_id) then ci.points
6203 else 0.0
6204 end as scheduled,
6205 case
6206 when (sc.calendar_schedule_id != pt.calendar_schedule_id) then ci.points
6207 else 0.0
6208 end as other_scheduled
6209 from
6210 buffer_schedules_1621795380 as sc
6211 inner join buffer_counter_increments_1621795380 as ci
6212 on sc.id = ci.schedule_id
6213 and ci.points != 0
6214 inner join assign_staff_types as ast
6215 on sc.staff_id = ast.staff_id
6216 and sc.schedule_on between ast.begin_date and coalesce(ast.end_date, '9999-12-31')
6217 inner join staff_types as st
6218 on ast.staff_type_id = st.id
6219 inner join buffer_point_targets_1621795380 as pt
6220 on sc.block_id = pt.block_id
6221 and st.point_hour_schedule_id = pt.calendar_schedule_id
6222 and sc.staff_id = pt.staff_id
6223 and sc.is_weekend = pt.is_weekend
6224 where
6225 sc.schedule_on = '2018-06-03'
6226 and sc.call_type_id = 10168
6227 and sc.staff_id = 17223
6228 order by null
6229
6230 (142.3ms) select 1 from buffer_tmp_targets_scheduled_1621795380
6231
6232 (157.4ms) update
6233 buffer_tmp_targets_scheduled_1621795380 as sch_t
6234 inner join buffer_point_targets_1621795380 as pt
6235 on sch_t.block_id = pt.block_id
6236 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
6237 and sch_t.staff_id = pt.staff_id
6238 and sch_t.is_weekend = pt.is_weekend
6239 set
6240 pt.scheduled = pt.scheduled + sch_t.scheduled,
6241 pt.scheduled_delta = sch_t.scheduled,
6242 pt.other_scheduled = pt.other_scheduled + sch_t.other_scheduled,
6243 pt.other_scheduled_delta = sch_t.other_scheduled
6244
6245 (137.8ms) select 1 from buffer_tmp_targets_scheduled_1621795380
6246 where other_scheduled != 0
6247
6248 (148.5ms) update
6249 buffer_current_point_targets_1621795380 as cr_pt
6250 inner join (
6251 select
6252 pt.staff_id,
6253 part_of_week.is_weekend,
6254 td.period_offset,
6255 pt.calendar_schedule_id,
6256 sum(pt.raw_target_delta) as raw_target_delta,
6257 sum(pt.target_delta) as adjusted_target_delta,
6258 sum(pt.scheduled_delta) as scheduled_delta,
6259 sum(pt.other_scheduled_delta) as other_scheduled_delta
6260 from
6261 buffer_tmp_targets_scheduled_1621795380 as sch_t
6262 inner join buffer_target_dates as td
6263 on td.session_id = 1621795380
6264 and sch_t.block_id = td.block_id
6265 and sch_t.calendar_schedule_id = td.calendar_schedule_id
6266 inner join buffer_point_targets_1621795380 as pt
6267 on sch_t.block_id = pt.block_id
6268 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
6269 and (
6270 sch_t.staff_id = pt.staff_id
6271 or sch_t.other_scheduled != 0
6272 )
6273 and sch_t.is_weekend = pt.is_weekend
6274 inner join (
6275 select 0 as is_weekend
6276 union select 1
6277
6278 ) as part_of_week
6279 on sch_t.is_weekend = part_of_week.is_weekend
6280 or part_of_week.is_weekend = -1
6281 group by
6282 pt.staff_id,
6283 part_of_week.is_weekend,
6284 td.period_offset,
6285 pt.calendar_schedule_id
6286 order by null
6287 ) as pt
6288 on cr_pt.staff_id = pt.staff_id
6289 and cr_pt.is_weekend = pt.is_weekend
6290 and cr_pt.period_offset = pt.period_offset
6291 and cr_pt.calendar_schedule_id = pt.calendar_schedule_id
6292 set
6293 cr_pt.raw_target = cr_pt.raw_target + pt.raw_target_delta,
6294 cr_pt.adjusted_target = cr_pt.adjusted_target + pt.adjusted_target_delta,
6295 cr_pt.scheduled = cr_pt.scheduled + pt.scheduled_delta,
6296 cr_pt.other_scheduled = cr_pt.other_scheduled + pt.other_scheduled_delta
6297
6298 (485.0ms) update
6299 buffer_cumulative_point_targets_1621795380 as cu_pt
6300 inner join (
6301 select
6302 pt.staff_id,
6303 part_of_week.is_weekend,
6304 pt.calendar_schedule_id,
6305 sum(pt.raw_target_delta) as raw_target_delta,
6306 sum(pt.target_delta) as adjusted_target_delta,
6307 sum(pt.scheduled_delta) as scheduled_delta,
6308 sum(pt.other_scheduled_delta) as other_scheduled_delta
6309 from
6310 buffer_tmp_targets_scheduled_1621795380 as sch_t
6311 inner join buffer_target_dates as td
6312 on td.session_id = 1621795380
6313 and sch_t.block_id = td.block_id
6314 and sch_t.calendar_schedule_id = td.calendar_schedule_id
6315 and td.within_cumulative_period = 1
6316 inner join buffer_point_targets_1621795380 as pt
6317 on sch_t.block_id = pt.block_id
6318 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
6319 and (
6320 sch_t.staff_id = pt.staff_id
6321 or sch_t.other_scheduled != 0
6322 )
6323 and sch_t.is_weekend = pt.is_weekend
6324 inner join (
6325 select 0 as is_weekend
6326 union select 1
6327
6328 ) as part_of_week
6329 on sch_t.is_weekend = part_of_week.is_weekend
6330 or part_of_week.is_weekend = -1
6331 group by
6332 pt.staff_id,
6333 part_of_week.is_weekend,
6334 pt.calendar_schedule_id
6335 order by null
6336 ) as pt
6337 on cu_pt.staff_id = pt.staff_id
6338 and cu_pt.is_weekend = pt.is_weekend
6339 and cu_pt.calendar_schedule_id = pt.calendar_schedule_id
6340 set
6341 cu_pt.raw_target = cu_pt.raw_target + pt.raw_target_delta,
6342 cu_pt.adjusted_target = cu_pt.adjusted_target + pt.adjusted_target_delta,
6343 cu_pt.scheduled = cu_pt.scheduled + pt.scheduled_delta,
6344 cu_pt.other_scheduled = cu_pt.other_scheduled + pt.other_scheduled_delta
6345
6346 (141.1ms) update
6347 buffer_tmp_targets_scheduled_1621795380 as sch_t
6348 inner join buffer_point_targets_1621795380 as pt
6349 on sch_t.block_id = pt.block_id
6350 and sch_t.calendar_schedule_id = pt.calendar_schedule_id
6351 and (
6352 sch_t.staff_id = pt.staff_id
6353 or sch_t.other_scheduled != 0
6354 )
6355 and sch_t.is_weekend = pt.is_weekend
6356 set
6357 pt.raw_target_delta = 0,
6358 pt.target_delta = 0,
6359 pt.scheduled_delta = 0,
6360 pt.other_scheduled_delta = 0
6361
6362 (162.1ms) /* AssignmentLimitsPerPeriod */
6363 /* Unique Key: assignment_limit_id, staff_id, start_date */
6364 insert into buffer_staff_assignments_count_periods_1621795380 (
6365 assignment_limit_id, staff_id, start_date, end_date, assignments_count
6366 )
6367 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
6368 1 as assignments_count
6369 from buffer_schedules_1621795380 as sc
6370 inner join buffer_assignment_limit_call_types_1621795380 as alct
6371 on sc.call_type_id = alct.call_type_id
6372 inner join assignment_limits as al
6373 on alct.assignment_limit_id = al.id
6374 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
6375 and al.max_per_period_limit is not null
6376 inner join assign_staff_types as ast
6377 on sc.staff_id = ast.staff_id
6378 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
6379 inner join buffer_assignment_limit_staff_types_1621795380 as alst
6380 on alct.assignment_limit_id = alst.assignment_limit_id
6381 and ast.staff_type_id = alst.staff_type_id
6382 inner join (
6383 select assignment_limit_id, start_date, end_date
6384 from buffer_linkage_assignments_count_periods_1621795380
6385 group by assignment_limit_id, start_date, end_date
6386 order by null
6387 ) as lac
6388 on alct.assignment_limit_id = lac.assignment_limit_id
6389 and sc.schedule_on between lac.start_date and lac.end_date
6390 where sc.schedule_on = '2018-06-03'
6391 and sc.call_type_id = 10168
6392 and sc.staff_id = 17223
6393 on duplicate key update
6394 assignments_count = assignments_count + 1
6395
6396 (233.5ms) /* AssignmentLimitsPerWeek */
6397 /* Unique Key: assignment_limit_id, staff_id, start_date */
6398 insert into buffer_staff_assignments_count_weeks_1621795380 (
6399 assignment_limit_id, staff_id, start_date, end_date, assignments_count
6400 )
6401 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
6402 1 as assignments_count
6403 from buffer_schedules_1621795380 as sc
6404 inner join buffer_assignment_limit_call_types_1621795380 as alct
6405 on sc.call_type_id = alct.call_type_id
6406 inner join assignment_limits as al
6407 on alct.assignment_limit_id = al.id
6408 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
6409 and al.max_weekly_limit is not null
6410 inner join assign_staff_types as ast
6411 on sc.staff_id = ast.staff_id
6412 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
6413 inner join buffer_assignment_limit_staff_types_1621795380 as alst
6414 on alct.assignment_limit_id = alst.assignment_limit_id
6415 and ast.staff_type_id = alst.staff_type_id
6416 inner join (
6417 select assignment_limit_id, start_date, end_date
6418 from buffer_linkage_assignments_count_weeks_1621795380
6419 group by assignment_limit_id, start_date, end_date
6420 order by null
6421 ) as lac
6422 on alct.assignment_limit_id = lac.assignment_limit_id
6423 and sc.schedule_on between lac.start_date and lac.end_date
6424 where sc.schedule_on = '2018-06-03'
6425 and sc.call_type_id = 10168
6426 and sc.staff_id = 17223
6427 on duplicate key update
6428 assignments_count = assignments_count + 1
6429
6430 (153.2ms) /* AssignmentLimitsRolling */
6431 /* Unique Key: assignment_limit_id, staff_id, start_date */
6432 insert into buffer_staff_assignments_count_rolling_1621795380 (
6433 assignment_limit_id, staff_id, start_date, end_date, assignments_count
6434 )
6435 select lac.assignment_limit_id, sc.staff_id, lac.start_date, lac.end_date,
6436 1 as assignments_count
6437 from buffer_schedules_1621795380 as sc
6438 inner join buffer_assignment_limit_call_types_1621795380 as alct
6439 on sc.call_type_id = alct.call_type_id
6440 inner join assignment_limits as al
6441 on alct.assignment_limit_id = al.id
6442 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
6443 and al.max_rolling_period is not null
6444 and al.max_rolling_limit is not null
6445 inner join assign_staff_types as ast
6446 on sc.staff_id = ast.staff_id
6447 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
6448 inner join buffer_assignment_limit_staff_types_1621795380 as alst
6449 on alct.assignment_limit_id = alst.assignment_limit_id
6450 and ast.staff_type_id = alst.staff_type_id
6451 inner join (
6452 select assignment_limit_id, start_date, end_date
6453 from buffer_linkage_assignments_count_rolling_1621795380
6454 group by assignment_limit_id, start_date, end_date
6455 order by null
6456 ) as lac
6457 on alct.assignment_limit_id = lac.assignment_limit_id
6458 and sc.schedule_on between lac.start_date and lac.end_date
6459 where sc.schedule_on = '2018-06-03'
6460 and sc.call_type_id = 10168
6461 and sc.staff_id = 17223
6462 on duplicate key update
6463 assignments_count = assignments_count + 1
6464
6465 (168.9ms) /* AssignmentLimitsConsecutive */
6466 /* Unique Key: assignment_limit_id, staff_id, schedule_on, start_date */
6467 insert ignore into buffer_staff_assignments_count_consecutive_1621795380 (
6468 assignment_limit_id, staff_id, schedule_on, start_date, end_date
6469 )
6470 select lac.assignment_limit_id, sc.staff_id, sc.schedule_on, lac.start_date, lac.end_date
6471 from buffer_schedules_1621795380 as sc
6472 inner join buffer_assignment_limit_call_types_1621795380 as alct
6473 on sc.call_type_id = alct.call_type_id
6474 inner join assignment_limits as al
6475 on alct.assignment_limit_id = al.id
6476 and (sc.day_of_week_mask & al.considered_days_of_week_mask) > 0
6477 and al.max_consecutive_limit is not null
6478 inner join assign_staff_types as ast
6479 on sc.staff_id = ast.staff_id
6480 and sc.schedule_on between ast.begin_date and ifnull(ast.end_date, '9999-12-31')
6481 inner join buffer_assignment_limit_staff_types_1621795380 as alst
6482 on alct.assignment_limit_id = alst.assignment_limit_id
6483 and ast.staff_type_id = alst.staff_type_id
6484 inner join (
6485 select assignment_limit_id, start_date, end_date
6486 from buffer_linkage_assignments_count_consecutive_1621795380
6487 group by assignment_limit_id, start_date, end_date
6488 order by null
6489 ) as lac
6490 on alct.assignment_limit_id = lac.assignment_limit_id
6491 and sc.schedule_on between lac.start_date and lac.end_date
6492 where sc.schedule_on = '2018-06-03'
6493 and sc.call_type_id = 10168
6494 and sc.staff_id = 17223
6495
6496INFO : (05-17 07:45:20) scheduled for: plan unit: [id:15201821] [2018-06-01 - CHCall2], [2018-06-01 - CHDay 2], [2018-06-02 - CHCall], [2018-06-03 - CHCall2], Elizabeth Nelson. DEPTH(28)
6497**Airbrake: closed