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