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