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