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