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