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