3
14.72 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
562282
543731
565364
654472
590411
598546
602647
586596
451563
470291
517869
659564
384243
489217
533477
474240
598471
755082
504876
490265
551222
656708
655698
656768
660964
661272
596616
436032
585096
552703
575441
568039
525464
534027
569929
572022
572418
651647
604476
658405
542961
656792
659272
555789
583723
620641
597791
617097
597963
617132
561995
558437
805487
489373
510109
597028
598042
462372
567574
452018
562796
429797
474643
512508
595875
631600
527273
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (562282 , 543731 , 565364 , 654472 , 590411 , 598546 , 602647 , 586596 , 451563 , 470291 , 517869 , 659564 , 384243 , 489217 , 533477 , 474240 , 598471 , 755082 , 504876 , 490265 , 551222 , 656708 , 655698 , 656768 , 660964 , 661272 , 596616 , 436032 , 585096 , 552703 , 575441 , 568039 , 525464 , 534027 , 569929 , 572022 , 572418 , 651647 , 604476 , 658405 , 542961 , 656792 , 659272 , 555789 , 583723 , 620641 , 597791 , 617097 , 597963 , 617132 , 561995 , 558437 , 805487 , 489373 , 510109 , 597028 , 598042 , 462372 , 567574 , 452018 , 562796 , 429797 , 474643 , 512508 , 595875 , 631600 , 527273 );
Copy
4
2.52 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
384243
429797
436032
451563
452018
462372
470291
474240
474643
489217
489373
490265
504876
510109
512508
517869
525464
527273
533477
534027
542961
543731
551222
552703
555789
558437
561995
562282
562796
565364
567574
568039
569929
572022
572418
575441
583723
585096
586596
590411
595875
596616
597028
597791
597963
598042
598471
598546
602647
604476
617097
617132
620641
631600
651647
654472
655698
656708
656768
656792
658405
659272
659564
660964
661272
755082
805487
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (384243 , 429797 , 436032 , 451563 , 452018 , 462372 , 470291 , 474240 , 474643 , 489217 , 489373 , 490265 , 504876 , 510109 , 512508 , 517869 , 525464 , 527273 , 533477 , 534027 , 542961 , 543731 , 551222 , 552703 , 555789 , 558437 , 561995 , 562282 , 562796 , 565364 , 567574 , 568039 , 569929 , 572022 , 572418 , 575441 , 583723 , 585096 , 586596 , 590411 , 595875 , 596616 , 597028 , 597791 , 597963 , 598042 , 598471 , 598546 , 602647 , 604476 , 617097 , 617132 , 620641 , 631600 , 651647 , 654472 , 655698 , 656708 , 656768 , 656792 , 658405 , 659272 , 659564 , 660964 , 661272 , 755082 , 805487 );
Copy
5
78.93 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
384243
429797
436032
451563
452018
462372
470291
474240
474643
489217
489373
490265
504876
510109
512508
517869
525464
527273
533477
534027
542961
543731
551222
552703
555789
558437
561995
562282
562796
565364
567574
568039
569929
572022
572418
575441
583723
585096
586596
590411
595875
596616
597028
597791
597963
598042
598471
598546
602647
604476
617097
617132
620641
631600
651647
654472
655698
656708
656768
656792
658405
659272
659564
660964
661272
755082
805487
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (384243 , 429797 , 436032 , 451563 , 452018 , 462372 , 470291 , 474240 , 474643 , 489217 , 489373 , 490265 , 504876 , 510109 , 512508 , 517869 , 525464 , 527273 , 533477 , 534027 , 542961 , 543731 , 551222 , 552703 , 555789 , 558437 , 561995 , 562282 , 562796 , 565364 , 567574 , 568039 , 569929 , 572022 , 572418 , 575441 , 583723 , 585096 , 586596 , 590411 , 595875 , 596616 , 597028 , 597791 , 597963 , 598042 , 598471 , 598546 , 602647 , 604476 , 617097 , 617132 , 620641 , 631600 , 651647 , 654472 , 655698 , 656708 , 656768 , 656792 , 658405 , 659272 , 659564 , 660964 , 661272 , 755082 , 805487 );
Copy