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