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