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