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