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