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