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