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