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