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