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