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