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