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