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