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