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