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