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