Advertisement
doblej

Untitled

Oct 26th, 2022 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1. # Thread_id: 326 Schema: tecnomari_es QC_hit: No
  2. # Query_time: 26.465460 Lock_time: 0.000623 Rows_sent: 20 Rows_examined: 12134062
  3. # Rows_affected: 0 Bytes_sent: 319
  4. # Tmp_tables: 3 Tmp_disk_tables: 1 Tmp_table_sizes: 435168
  5. # Full_scan: No Full_join: No Tmp_table: Yes Tmp_table_on_disk: Yes
  6. # Filesort: Yes Filesort_on_disk: No Merge_passes: 1 Priority_queue: No
  7. #
  8. # explain: id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
  9. # explain: 1 PRIMARY wp_posts range PRIMARY,type_status_date type_status_date 164 NULL 8501 4724.00 6.73 99.51 Using where; Using index; Using temporary; Using filesort
  10. # explain: 1 PRIMARY tt1 ref PRIMARY,term_taxonomy_id PRIMARY 8 tecnomari_es.wp_posts.ID 5 12.74 4.18 14.72 Using where; Using index
  11. # explain: 1 PRIMARY tt2 ref PRIMARY,term_taxonomy_id PRIMARY 8 tecnomari_es.wp_posts.ID 5 9.90 4.18 29.96 Using where; Using index
  12. # explain: 1 PRIMARY wp_term_relationships ref PRIMARY,term_taxonomy_id PRIMARY 8 tecnomari_es.wp_posts.ID 5 9.96 4.18 30.73 Using where; Using index
  13. # explain: 1 PRIMARY istockstatus ref post_id,meta_key post_id 8 tecnomari_es.wp_posts.ID 15 73.25 0.22 1.37 Using where
  14. # explain: 1 PRIMARY wp_postmeta ref post_id,meta_key post_id 8 tecnomari_es.wp_posts.ID 15 73.25 0.22 1.37 Using where
  15. # explain: 2 MATERIALIZED wp_term_relationships ref PRIMARY,term_taxonomy_id term_taxonomy_id 8 const 23 23.00 100.00 100.00Using index
  16. #
  17. SET timestamp=1666786796;
  18. SELECT SQL_CALC_FOUND_ROWS
  19. wp_posts.ID
  20. FROM
  21. wp_posts
  22. LEFT JOIN wp_term_relationships ON ( wp_posts.ID = wp_term_relationships.object_id )
  23. LEFT JOIN wp_term_relationships AS tt1 ON ( wp_posts.ID = tt1.object_id )
  24. LEFT JOIN wp_term_relationships AS tt2 ON ( wp_posts.ID = tt2.object_id )
  25. INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id )
  26. INNER JOIN wp_postmeta istockstatus ON ( wp_posts.ID = istockstatus.post_id )
  27. WHERE
  28. 1 = 1
  29. AND istockstatus.meta_key = '_stock_status'
  30. AND istockstatus.meta_value <> ''
  31. AND (
  32. wp_term_relationships.term_taxonomy_id IN (
  33. 5753,
  34. 5754,
  35. 5815,
  36. 5823,
  37. 5829,
  38. 6385,
  39. 6386,
  40. 6387,
  41. 6388,
  42. 6389,
  43. 6390,
  44. 6391,
  45. 6392,
  46. 6393,
  47. 6394,
  48. 6395,
  49. 6396,
  50. 6397,
  51. 6398,
  52. 6399,
  53. 6400,
  54. 6401,
  55. 6402,
  56. 6403,
  57. 6404,
  58. 6405,
  59. 6406,
  60. 6407,
  61. 6408,
  62. 6409,
  63. 6410,
  64. 6411,
  65. 6412,
  66. 6414,
  67. 6415,
  68. 6416,
  69. 6418,
  70. 6419,
  71. 6421,
  72. 6422,
  73. 6423,
  74. 6424,
  75. 6425,
  76. 6426,
  77. 6428,
  78. 6429,
  79. 6432,
  80. 6433,
  81. 6435,
  82. 6437,
  83. 6448,
  84. 6449,
  85. 6451,
  86. 6456,
  87. 6458,
  88. 6459,
  89. 6461,
  90. 6462,
  91. 6463,
  92. 6468,
  93. 6482,
  94. 6485,
  95. 6486,
  96. 6488,
  97. 6489,
  98. 6490,
  99. 6491,
  100. 6492,
  101. 6493,
  102. 6494,
  103. 6495,
  104. 6496,
  105. 6497,
  106. 6498,
  107. 6508,
  108. 6513,
  109. 6516,
  110. 6518,
  111. 6519,
  112. 6520,
  113. 6522,
  114. 6523,
  115. 6524,
  116. 6525,
  117. 6526,
  118. 6527,
  119. 6528,
  120. 6529,
  121. 6530,
  122. 6531,
  123. 6592,
  124. 6599,
  125. 6600,
  126. 6601,
  127. 7239,
  128. 7255,
  129. 7256,
  130. 7257,
  131. 7258,
  132. 7259,
  133. 7260,
  134. 7261,
  135. 7262,
  136. 7263,
  137. 7264,
  138. 8177,
  139. 8179,
  140. 8183,
  141. 8185,
  142. 8187,
  143. 8188,
  144. 8191,
  145. 8192,
  146. 8194,
  147. 8195,
  148. 8197,
  149. 8198,
  150. 8199,
  151. 8200,
  152. 8201,
  153. 8202,
  154. 8206,
  155. 8211,
  156. 8213,
  157. 8215,
  158. 8219,
  159. 8224,
  160. 8225,
  161. 8226,
  162. 8234,
  163. 8238,
  164. 8242,
  165. 8244,
  166. 8247,
  167. 8248,
  168. 8250,
  169. 8258,
  170. 8260,
  171. 8267,
  172. 8269,
  173. 8270,
  174. 8272,
  175. 8274,
  176. 8275,
  177. 8277,
  178. 8280,
  179. 8282,
  180. 8284,
  181. 8286,
  182. 8288,
  183. 8292,
  184. 8294,
  185. 8296,
  186. 8298,
  187. 8300,
  188. 8302,
  189. 8304,
  190. 8306,
  191. 8308,
  192. 8336,
  193. 8338,
  194. 8341,
  195. 8344,
  196. 8346,
  197. 8349,
  198. 8351,
  199. 8353,
  200. 8355,
  201. 8357,
  202. 8359,
  203. 8361,
  204. 8363,
  205. 8365,
  206. 8368,
  207. 8369,
  208. 8371,
  209. 8372,
  210. 8374,
  211. 8377,
  212. 8379,
  213. 8380,
  214. 8383,
  215. 8386,
  216. 8396,
  217. 8398,
  218. 8400,
  219. 8401,
  220. 8404,
  221. 8406,
  222. 8408,
  223. 8413,
  224. 8414,
  225. 8415,
  226. 8416,
  227. 8417,
  228. 8419,
  229. 8420,
  230. 8421,
  231. 8423,
  232. 8427,
  233. 8430,
  234. 8432,
  235. 8434,
  236. 8436,
  237. 8438,
  238. 8440,
  239. 8441,
  240. 8443,
  241. 8445,
  242. 8447,
  243. 8449,
  244. 8450,
  245. 8452,
  246. 8454,
  247. 8455,
  248. 8457,
  249. 8458,
  250. 8459,
  251. 8461,
  252. 8463,
  253. 8466,
  254. 8471,
  255. 8472,
  256. 8474,
  257. 8476,
  258. 8477,
  259. 8479,
  260. 8481
  261. )
  262. AND wp_posts.ID NOT IN ( SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id IN ( 7 ) )
  263. AND tt1.term_taxonomy_id IN (
  264. 5753,
  265. 5754,
  266. 5815,
  267. 5823,
  268. 5829,
  269. 6385,
  270. 6386,
  271. 6387,
  272. 6388,
  273. 6389,
  274. 6390,
  275. 6391,
  276. 6392,
  277. 6393,
  278. 6394,
  279. 6395,
  280. 6396,
  281. 6397,
  282. 6398,
  283. 6399,
  284. 6400,
  285. 6401,
  286. 6402,
  287. 6403,
  288. 6404,
  289. 6405,
  290. 6406,
  291. 6407,
  292. 6408,
  293. 6409,
  294. 6410,
  295. 6411,
  296. 6412,
  297. 6414,
  298. 6415,
  299. 6416,
  300. 6418,
  301. 6419,
  302. 6421,
  303. 6422,
  304. 6423,
  305. 6424,
  306. 6425,
  307. 6426,
  308. 6428,
  309. 6429,
  310. 6432,
  311. 6433,
  312. 6435,
  313. 6437,
  314. 6448,
  315. 6449,
  316. 6451,
  317. 6456,
  318. 6458,
  319. 6459,
  320. 6461,
  321. 6462,
  322. 6463,
  323. 6468,
  324. 6482,
  325. 6485,
  326. 6486,
  327. 6488,
  328. 6489,
  329. 6490,
  330. 6491,
  331. 6492,
  332. 6493,
  333. 6494,
  334. 6495,
  335. 6496,
  336. 6497,
  337. 6498,
  338. 6508,
  339. 6513,
  340. 6516,
  341. 6518,
  342. 6519,
  343. 6520,
  344. 6522,
  345. 6523,
  346. 6524,
  347. 6525,
  348. 6526,
  349. 6527,
  350. 6528,
  351. 6529,
  352. 6530,
  353. 6531,
  354. 6592,
  355. 6599,
  356. 6600,
  357. 6601,
  358. 7239,
  359. 7255,
  360. 7256,
  361. 7257,
  362. 7258,
  363. 7259,
  364. 7260,
  365. 7261,
  366. 7262,
  367. 7263,
  368. 7264,
  369. 8177,
  370. 8179,
  371. 8183,
  372. 8185,
  373. 8187,
  374. 8188,
  375. 8191,
  376. 8192,
  377. 8194,
  378. 8195,
  379. 8197,
  380. 8198,
  381. 8199,
  382. 8200,
  383. 8201,
  384. 8202,
  385. 8206,
  386. 8211,
  387. 8213,
  388. 8215,
  389. 8219,
  390. 8224,
  391. 8225,
  392. 8226,
  393. 8234,
  394. 8238,
  395. 8242,
  396. 8244,
  397. 8247,
  398. 8248,
  399. 8250,
  400. 8258,
  401. 8260,
  402. 8267,
  403. 8269,
  404. 8270,
  405. 8272,
  406. 8274,
  407. 8275,
  408. 8277,
  409. 8280,
  410. 8282,
  411. 8284,
  412. 8286,
  413. 8288,
  414. 8292,
  415. 8294,
  416. 8296,
  417. 8298,
  418. 8300,
  419. 8302,
  420. 8304,
  421. 8306,
  422. 8308,
  423. 8336,
  424. 8338,
  425. 8341,
  426. 8344,
  427. 8346,
  428. 8349,
  429. 8351,
  430. 8353,
  431. 8355,
  432. 8357,
  433. 8359,
  434. 8361,
  435. 8363,
  436. 8365,
  437. 8368,
  438. 8369,
  439. 8371,
  440. 8372,
  441. 8374,
  442. 8377,
  443. 8379,
  444. 8380,
  445. 8383,
  446. 8386,
  447. 8396,
  448. 8398,
  449. 8400,
  450. 8401,
  451. 8404,
  452. 8406,
  453. 8408,
  454. 8413,
  455. 8414,
  456. 8415,
  457. 8416,
  458. 8417,
  459. 8419,
  460. 8420,
  461. 8421,
  462. 8423,
  463. 8427,
  464. 8430,
  465. 8432,
  466. 8434,
  467. 8436,
  468. 8438,
  469. 8440,
  470. 8441,
  471. 8443,
  472. 8445,
  473. 8447,
  474. 8449,
  475. 8450,
  476. 8452,
  477. 8454,
  478. 8455,
  479. 8457,
  480. 8458,
  481. 8459,
  482. 8461,
  483. 8463,
  484. 8466,
  485. 8471,
  486. 8472,
  487. 8474,
  488. 8476,
  489. 8477,
  490. 8479,
  491. 8481
  492. )
  493. AND tt2.term_taxonomy_id IN (
  494. 5753,
  495. 5754,
  496. 5815,
  497. 5823,
  498. 5829,
  499. 6385,
  500. 6386,
  501. 6387,
  502. 6388,
  503. 6389,
  504. 6390,
  505. 6391,
  506. 6392,
  507. 6393,
  508. 6394,
  509. 6395,
  510. 6396,
  511. 6397,
  512. 6398,
  513. 6399,
  514. 6400,
  515. 6401,
  516. 6402,
  517. 6403,
  518. 6404,
  519. 6405,
  520. 6406,
  521. 6407,
  522. 6408,
  523. 6409,
  524. 6410,
  525. 6411,
  526. 6412,
  527. 6414,
  528. 6415,
  529. 6416,
  530. 6418,
  531. 6419,
  532. 6421,
  533. 6422,
  534. 6423,
  535. 6424,
  536. 6425,
  537. 6426,
  538. 6428,
  539. 6429,
  540. 6432,
  541. 6433,
  542. 6435,
  543. 6437,
  544. 6448,
  545. 6449,
  546. 6451,
  547. 6456,
  548. 6458,
  549. 6459,
  550. 6461,
  551. 6462,
  552. 6463,
  553. 6468,
  554. 6482,
  555. 6485,
  556. 6486,
  557. 6488,
  558. 6489,
  559. 6490,
  560. 6491,
  561. 6492,
  562. 6493,
  563. 6494,
  564. 6495,
  565. 6496,
  566. 6497,
  567. 6498,
  568. 6508,
  569. 6513,
  570. 6516,
  571. 6518,
  572. 6519,
  573. 6520,
  574. 6522,
  575. 6523,
  576. 6524,
  577. 6525,
  578. 6526,
  579. 6527,
  580. 6528,
  581. 6529,
  582. 6530,
  583. 6531,
  584. 6592,
  585. 6599,
  586. 6600,
  587. 6601,
  588. 7239,
  589. 7255,
  590. 7256,
  591. 7257,
  592. 7258,
  593. 7259,
  594. 7260,
  595. 7261,
  596. 7262,
  597. 7263,
  598. 7264,
  599. 8177,
  600. 8179,
  601. 8183,
  602. 8185,
  603. 8187,
  604. 8188,
  605. 8191,
  606. 8192,
  607. 8194,
  608. 8195,
  609. 8197,
  610. 8198,
  611. 8199,
  612. 8200,
  613. 8201,
  614. 8202,
  615. 8206,
  616. 8211,
  617. 8213,
  618. 8215,
  619. 8219,
  620. 8224,
  621. 8225,
  622. 8226,
  623. 8234,
  624. 8238,
  625. 8242,
  626. 8244,
  627. 8247,
  628. 8248,
  629. 8250,
  630. 8258,
  631. 8260,
  632. 8267,
  633. 8269,
  634. 8270,
  635. 8272,
  636. 8274,
  637. 8275,
  638. 8277,
  639. 8280,
  640. 8282,
  641. 8284,
  642. 8286,
  643. 8288,
  644. 8292,
  645. 8294,
  646. 8296,
  647. 8298,
  648. 8300,
  649. 8302,
  650. 8304,
  651. 8306,
  652. 8308,
  653. 8336,
  654. 8338,
  655. 8341,
  656. 8344,
  657. 8346,
  658. 8349,
  659. 8351,
  660. 8353,
  661. 8355,
  662. 8357,
  663. 8359,
  664. 8361,
  665. 8363,
  666. 8365,
  667. 8368,
  668. 8369,
  669. 8371,
  670. 8372,
  671. 8374,
  672. 8377,
  673. 8379,
  674. 8380,
  675. 8383,
  676. 8386,
  677. 8396,
  678. 8398,
  679. 8400,
  680. 8401,
  681. 8404,
  682. 8406,
  683. 8408,
  684. 8413,
  685. 8414,
  686. 8415,
  687. 8416,
  688. 8417,
  689. 8419,
  690. 8420,
  691. 8421,
  692. 8423,
  693. 8427,
  694. 8430,
  695. 8432,
  696. 8434,
  697. 8436,
  698. 8438,
  699. 8440,
  700. 8441,
  701. 8443,
  702. 8445,
  703. 8447,
  704. 8449,
  705. 8450,
  706. 8452,
  707. 8454,
  708. 8455,
  709. 8457,
  710. 8458,
  711. 8459,
  712. 8461,
  713. 8463,
  714. 8466,
  715. 8471,
  716. 8472,
  717. 8474,
  718. 8476,
  719. 8477,
  720. 8479,
  721. 8481
  722. )
  723. )
  724. AND ( wp_postmeta.meta_key = '_stock_status' )
  725. AND ((
  726. wp_posts.post_type = 'product'
  727. AND ( wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' )))
  728. GROUP BY
  729. wp_posts.ID
  730. ORDER BY
  731. istockstatus.meta_value ASC,
  732. wp_postmeta.meta_value ASC
  733. LIMIT 0,
  734. 20;
  735.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement