Czas zapytania: 60.56 ms Po ostatnim zapytaniu: 7.40 ms Pamięć zapytania: 0.025 MB Pamięć przed zapytaniem: 11.300 MB Zwróconych wierszy: 4
SELECT SUM(orderitem_quantity) as ordered, product_id
FROM ecenu_k2store_orderitems
WHERE product_id IN (15755, 16050, 16372, 16004, 16043, 16366, 15608, 16266, 15819, 16357, 15392, 15729, 16402, 16391, 15841, 15878, 15965, 15572, 15721, 16072, 15993, 16019, 16035, 16085, 15612, 16093, 15418, 16034, 16316, 15613, 15683, 15999, 15939, 15611, 15877, 16201, 16297, 16150, 16036, 15958, 15581, 16394, 16033, 16029, 15925, 15885, 15977, 15498, 16403, 16373, 15889, 15784, 15646, 15810, 15660, 15616, 16074, 16032, 16167, 16270, 15702, 15578, 16331, 15383, 16325, 16218, 15509, 16110, 16254, 15570, 15697, 15614, 15698, 15462, 15747, 15534, 16031, 16355, 15922, 15912, 15503, 16390, 15872, 15672, 16313, 15490, 15762, 16265, 15479, 15843, 15851, 15656, 16011, 16115, 16102, 15689, 16233, 16037, 15830, 15785, 15931, 15433, 15666, 16189, 16103, 16304, 15799, 16393, 15888, 16335, 16163, 15630, 15643, 15995, 16358, 16169, 15619, 16068, 16277, 16053, 15636, 16124, 15701, 15635, 15382, 16007, 16045, 16411, 16181, 15827, 15527, 16400, 15415, 15886, 15528, 16350, 16320, 16088, 16135, 16389, 15777, 16288, 16042, 16061, 15492, 15770, 16298, 15560, 15520, 15524, 16341, 15901, 15896, 15716, 16259, 15735, 16205, 15865, 15991, 15699, 15742, 16134, 15546, 16112, 16023, 16121, 15746, 16273, 15554, 16404, 15868, 16220, 15536, 16328, 16197, 16386, 16307, 15730, 15477, 15685, 16206, 15446, 15476, 15859, 16407, 15906, 15400, 15847, 16244, 16196, 15722, 15773, 15549, 15719, 15551, 16027, 15481, 16151, 16202, 16010, 16131, 15804, 16237, 16188, 16055, 16388, 15639, 15591, 16047, 15718, 16374, 16409, 16314, 16396, 16079, 15665, 15705, 16148, 16136, 16122, 16133, 16183, 16422, 15406, 15926, 16257, 16217, 15580, 16235, 15678, 16114, 16017, 15475, 15899, 15473, 15908, 15914, 15933, 16295, 15637, 15442, 15395, 16064, 15493, 15425, 16058, 15797, 15522, 16003, 15987, 16127, 15854, 15434, 16368, 16354, 16104, 15805, 15816, 15571, 15586, 16414, 15602, 15800, 15529, 15615, 16342, 15544, 16080, 16024, 16289, 15832, 15500, 15817, 15739, 16212, 16377, 16172, 15556, 15812, 15676, 16065, 15708, 15813, 16280, 15909, 16009, 15499, 15679, 15867, 16349, 15609, 16360, 15766, 16229, 16240, 16362, 15749, 16013, 16063, 15542, 15870, 15850, 16198, 15664, 15935, 16253, 15668, 15856, 15461, 15857, 16060, 16054, 16246, 15720, 15402, 16099, 15478, 15734, 15763, 16263, 16384, 16165, 16383, 15764, 15618, 16130, 16118, 15584, 16248, 15694, 15451, 16432, 16149, 16026, 16005, 15538, 16158, 16272, 15823, 15891, 15835, 16113, 15794, 15690, 16250, 16408, 15550, 16139, 16296, 15541, 16069, 15737, 16173, 15970, 15954, 15430, 15982, 15644, 16258, 15726, 15673, 15884, 15389, 15732, 16087, 15537, 16398, 16119, 16155, 15790, 16236, 15573, 15820, 15955, 15459, 15627, 15404, 15783, 15966, 16070, 15779, 15754, 15786, 15610, 16283, 15472, 15876, 16353, 15445, 16075, 16038, 15898, 15861, 16434, 15649, 16329, 16207, 15704, 16397, 16418, 15652, 15429, 16275, 15561, 15691, 15826, 15743, 16177, 16421, 15855, 16140, 15828, 15976, 16067, 16161, 15772, 16339, 15724, 15506, 16255, 15645, 16126, 15696, 15576, 16419, 16090, 15386, 15543, 15962, 16091, 16370, 15482, 16208, 16285, 16138, 15407, 16030, 15455, 15385, 16222, 15463, 15409, 16021, 16330, 15592, 16424, 16057, 15505, 16001, 15411, 15684, 15396, 15501, 16367, 15458, 15849, 16380, 15456, 15768, 15508, 15738, 15605, 15767, 15960, 15686, 15796, 15941, 16293, 16292, 15417, 16344, 16111, 16211, 15426, 16327, 15894, 15469, 15757, 16153, 15713, 16176, 15535, 16340, 15511, 15513, 15760, 15491, 15733, 15604, 16252, 15659, 16300, 15460, 16379, 15502, 16049, 15480, 15920, 15913, 15992, 15526, 16022, 15617, 15887, 15590, 16271, 16347, 15985, 15486, 15932, 15951, 16000, 16231, 16417, 15548, 15988, 15700, 15916, 15831, 16284, 15919, 15391, 15882, 15959, 16096, 15809, 16413, 16324, 15641, 16204, 15390, 15943, 15393, 16281, 16191, 15974, 16359, 16232, 16365, 15845, 15674, 16430, 15599, 15452, 15413, 16311, 15838, 15398, 15582, 16094, 16123, 15710, 15998, 16376, 16352, 15555, 15904, 15986, 15408, 16041, 16239, 15707, 15471, 15744, 16429, 15558, 16051, 15410, 15424, 15803, 15818, 15394, 16108, 15787, 15539, 15844, 16333, 16077, 15814, 15897, 16089, 15431, 15745, 16322, 15775, 15937, 15422, 15807, 15437, 16015, 15562, 15420, 15675, 15564, 15852, 15752, 16303, 15465, 16078, 16178, 15597, 15412, 16346, 16299, 15397, 15532, 15883, 16082, 16228, 15512, 15942, 15583, 16215, 15715, 15903, 15871, 15853, 16278, 15934, 15622, 15780, 15677, 16039, 15714, 15782, 16187, 15620, 16137, 15727, 16279, 15483, 15972, 15774, 15640, 15875, 15858, 15753, 16286, 16291, 16426, 16006, 16385, 16073, 16243, 16044, 16180, 15842, 16095, 15911, 15873, 16157, 15436, 15915, 15514, 15994, 16260, 15497, 16066, 16399, 15531, 15923, 15917, 15693, 15603, 15487, 15996, 16356, 15489, 15765, 16214, 16247, 15648, 16171, 15598, 16378, 15593, 15421, 15563, 16308, 15427, 15651, 15945, 16336, 15806, 15864, 16371, 16175, 16144, 16405, 16276, 15403, 15758, 16249, 15881, 15829, 15633, 15948, 16081, 15709, 15837, 16219, 15557, 15788, 16179, 16433, 16230, 16301, 15579, 15789, 15625, 16401, 15695, 15626, 15811, 15566, 15621, 16097, 15671, 16014, 15839, 15910, 15936, 15918, 15447, 15600, 16210, 16415, 15450, 15795, 15569, 16251, 15761, 15453, 15587, 16185, 16046, 15595, 15895, 16192, 15711, 15688, 16182, 15449, 15863, 16002, 15443, 16306, 15488, 16416, 15496, 15725, 15750, 16427, 16315, 16106, 16008, 16326, 15521, 16160, 15419, 15680, 15971, 15642, 15494, 15833, 16018, 16062, 15669, 16076, 16312, 15596, 15990, 15507, 15866, 16428, 16084, 15938, 16159, 15553, 16146, 15575, 15515, 15751, 16117, 15946, 15778, 16142, 15736, 16348, 15979, 15388, 16052, 15663, 15484, 15432, 16318, 15559, 16382, 15798, 15961, 15589, 15416, 16194, 16261, 16241, 15731, 15567, 15574, 15654, 16274, 15638, 16412, 16267, 15741, 15588, 15670, 15525, 16221, 15658, 16351, 16143, 15947, 15723, 16016, 15953, 16101, 16282, 15824, 16309, 15547, 16425, 15470, 15791, 15661, 16345, 16287, 15956, 16059, 15967, 15902, 15568, 15441, 16166, 15628, 16152, 15540, 16129, 16116, 15387, 16305, 15983, 16264, 16048, 15821, 16423, 15657, 16203, 15840, 16025, 15681, 15687, 16238, 15634, 16375, 15516, 16361, 16381, 16071, 15662, 16369, 15706, 16406, 16392, 15631, 15632, 15963, 16323, 16223, 15808, 15944, 15585, 16343, 16120, 15423, 16268, 15980, 15468, 16168, 15552, 15989, 15606, 15952, 16092, 16395, 16184, 15405, 15577, 16338, 15601, 15802, 15435, 16162, 16040, 16227, 15428, 15973, 16364, 16098, 15792, 16290, 15565, 15893, 15968, 15530, 15517, 16319, 15781, 15655, 16213, 16086, 15957, 16147, 15950, 16224, 16105, 16435, 15890, 16256, 15759, 16195, 15756, 15682, 16083, 15997, 15624, 15748, 16234, 16128, 15874, 15769, 16020, 15629, 15444, 15964, 15834, 15703, 15921, 15740, 15454, 15940, 15927, 16012, 16028, 15607, 16302, 16225, 16269, 15384, 15717, 15712, 15801, 15667, 16294, 16262, 15518, 16226, 15440, 16164, 15467, 15438, 15466, 15880, 15510, 15836, 16420, 16387, 15594, 15504, 16174, 16410, 15623, 15928, 15439, 15907, 16332, 16186, 16145, 16156, 16363, 16100, 15414, 16107, 16109, 15846, 16132, 15869, 15825, 15822, 16125, 15485, 15647, 16334, 15399, 15448, 16154, 15900, 15650, 15905, 15533, 15401, 16245, 15771, 15776, 15457, 15929, 15523, 15728, 15692, 16190, 16337, 16317, 15862, 16199, 15978, 15892, 15860, 15474, 15464, 15949, 16193, 15981, 15545, 16310, 16431, 15519, 15495, 15815, 15984, 16242, 16321, 15653, 16200, 15848, 15793, 16141, 15924, 15975, 16216, 15969, 16209, 15879, 16170, 15930, 16056)
GROUP BY product_id
ORDER BY ordered DESC
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|
| 1 | PRIMARY | ecenu_k2store_orderitems | ALL | NULL | Nie można korzystać z żadnych kluczy indeksowych. | NULL | NULL | 121033 | Using temporary; Uruchomiono metodę filesort |
| 1 | PRIMARY | <subquery2> | eq_ref | distinct_key | distinct_key | 4 | func | 1 | |
| 2 | MATERIALIZED | <derived3> | ALL | NULL | Nie można korzystać z żadnych kluczy indeksowych. | NULL | NULL | 1054 | |
| 3 | DERIVED | NULL | NULL | NULL | Nie można korzystać z żadnych kluczy indeksowych. | NULL | NULL | NULL | No tables used |
| Status | Duration |
|---|
| Starting | 0.39 ms |
| Checking permissions | 0.01 ms |
| Opening tables | 0.02 ms |
| After opening tables | 0.01 ms |
| System lock | 0.01 ms |
| Table lock | 0.01 ms |
| Init | 0.23 ms |
| Optimizing | 0.24 ms |
| Statistics | 0.03 ms |
| Preparing | 0.03 ms |
| Creating tmp table | 0.02 ms |
| Sorting result | 0.01 ms |
| Executing | 0.01 ms |
| Sending data | 0.19 ms |
| Removing tmp table | 0.01 ms |
| Sending data | 58.89 ms |
| Creating sort index | 0.04 ms |
| Removing tmp table | 0.01 ms |
| Creating sort index | 0.01 ms |
| End of update loop | 0.01 ms |
| Removing tmp table | 0.01 ms |
| End of update loop | 0.01 ms |
| Query end | 0.01 ms |
| Commit | 0.01 ms |
| Closing tables | 0.01 ms |
| Removing tmp table | 0.01 ms |
| Closing tables | 0.01 ms |
| Unlocking tables | 0.01 ms |
| Closing tables | 0.01 ms |
| Starting cleanup | 0.01 ms |
| Freeing items | 0.06 ms |
| Updating status | 0.03 ms |
| Reset for next command | 0.01 ms |
| # | Wywołujący | Plik i numer linii |
|---|
| 20 | JDatabaseDriverMysqli->execute() | JROOT/libraries/joomla/database/driver.php:1701 |
| 19 | JDatabaseDriver->loadObjectList() | JROOT/modules/mod_rrrk2_content/helper.php:569 |
| 18 | modrrrK2ContentHelper::getItemsOrderedInfo() | JROOT/modules/mod_rrrk2_content/helper.php:256 |
| 17 | modrrrK2ContentHelper::getItems() | JROOT/modules/mod_rrrk2_content/mod_rrrk2_content.php:64 |
| 16 | include JROOT/modules/mod_rrrk2_content/mod_rrrk2_content.php | JROOT/libraries/src/Helper/ModuleHelper.php:200 |
| 15 | Joomla\CMS\Helper\ModuleHelper::renderModule() | JROOT/templates/stacjabiuro2023/html/com_k2/templates/stacja-biuro/item.php:866 |
| 14 | include JROOT/templates/stacjabiuro2023/html/com_k2/templates/stacja-biuro/item.php | JROOT/libraries/src/MVC/View/HtmlView.php:701 |
| 13 | Joomla\CMS\MVC\View\HtmlView->loadTemplate() | JROOT/libraries/src/MVC/View/HtmlView.php:230 |
| 12 | Joomla\CMS\MVC\View\HtmlView->display() | JROOT/components/com_k2/views/item/view.html.php:521 |
| 11 | K2ViewItem->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:664 |
| 10 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/components/com_k2/controllers/controller.php:19 |
| 9 | K2Controller->display() | JROOT/components/com_k2/controllers/item.php:74 |
| 8 | K2ControllerItem->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:702 |
| 7 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/components/com_k2/k2.php:64 |
| 6 | require_once JROOT/components/com_k2/k2.php | JROOT/libraries/src/Component/ComponentHelper.php:402 |
| 5 | Joomla\CMS\Component\ComponentHelper::executeComponent() | JROOT/libraries/src/Component/ComponentHelper.php:377 |
| 4 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:194 |
| 3 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:233 |
| 2 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:225 |
| 1 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/index.php:53 |