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