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