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