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