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