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