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