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