3
13.79 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
509988
464649
582797
493155
526515
600843
485267
520015
535537
610060
590943
403588
468280
456812
591792
535417
567757
671667
473900
543475
602974
419475
469509
521758
517923
573765
567343
541366
598863
593877
390382
421833
496771
634885
512094
522913
478049
599844
605398
607707
560924
610588
571213
633423
599967
568566
592174
433362
541888
555953
643252
518438
642407
576653
544123
524620
538848
520710
639722
582468
601034
478155
522000
526104
569955
563228
543848
420262
574384
541864
588286
472597
546125
]
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 (509988 , 464649 , 582797 , 493155 , 526515 , 600843 , 485267 , 520015 , 535537 , 610060 , 590943 , 403588 , 468280 , 456812 , 591792 , 535417 , 567757 , 671667 , 473900 , 543475 , 602974 , 419475 , 469509 , 521758 , 517923 , 573765 , 567343 , 541366 , 598863 , 593877 , 390382 , 421833 , 496771 , 634885 , 512094 , 522913 , 478049 , 599844 , 605398 , 607707 , 560924 , 610588 , 571213 , 633423 , 599967 , 568566 , 592174 , 433362 , 541888 , 555953 , 643252 , 518438 , 642407 , 576653 , 544123 , 524620 , 538848 , 520710 , 639722 , 582468 , 601034 , 478155 , 522000 , 526104 , 569955 , 563228 , 543848 , 420262 , 574384 , 541864 , 588286 , 472597 , 546125 );
Copy
4
2.11 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
390382
403588
419475
420262
421833
433362
456812
464649
468280
469509
472597
473900
478049
478155
485267
493155
496771
509988
512094
517923
518438
520015
520710
521758
522000
522913
524620
526104
526515
535417
535537
538848
541366
541864
541888
543475
543848
544123
546125
555953
560924
563228
567343
567757
568566
569955
571213
573765
574384
576653
582468
582797
588286
590943
591792
592174
593877
598863
599844
599967
600843
601034
602974
605398
607707
610060
610588
633423
634885
639722
642407
643252
671667
]
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 (390382 , 403588 , 419475 , 420262 , 421833 , 433362 , 456812 , 464649 , 468280 , 469509 , 472597 , 473900 , 478049 , 478155 , 485267 , 493155 , 496771 , 509988 , 512094 , 517923 , 518438 , 520015 , 520710 , 521758 , 522000 , 522913 , 524620 , 526104 , 526515 , 535417 , 535537 , 538848 , 541366 , 541864 , 541888 , 543475 , 543848 , 544123 , 546125 , 555953 , 560924 , 563228 , 567343 , 567757 , 568566 , 569955 , 571213 , 573765 , 574384 , 576653 , 582468 , 582797 , 588286 , 590943 , 591792 , 592174 , 593877 , 598863 , 599844 , 599967 , 600843 , 601034 , 602974 , 605398 , 607707 , 610060 , 610588 , 633423 , 634885 , 639722 , 642407 , 643252 , 671667 );
Copy
5
115.10 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
390382
403588
419475
420262
421833
433362
456812
464649
468280
469509
472597
473900
478049
478155
485267
493155
496771
509988
512094
517923
518438
520015
520710
521758
522000
522913
524620
526104
526515
535417
535537
538848
541366
541864
541888
543475
543848
544123
546125
555953
560924
563228
567343
567757
568566
569955
571213
573765
574384
576653
582468
582797
588286
590943
591792
592174
593877
598863
599844
599967
600843
601034
602974
605398
607707
610060
610588
633423
634885
639722
642407
643252
671667
]
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 (390382 , 403588 , 419475 , 420262 , 421833 , 433362 , 456812 , 464649 , 468280 , 469509 , 472597 , 473900 , 478049 , 478155 , 485267 , 493155 , 496771 , 509988 , 512094 , 517923 , 518438 , 520015 , 520710 , 521758 , 522000 , 522913 , 524620 , 526104 , 526515 , 535417 , 535537 , 538848 , 541366 , 541864 , 541888 , 543475 , 543848 , 544123 , 546125 , 555953 , 560924 , 563228 , 567343 , 567757 , 568566 , 569955 , 571213 , 573765 , 574384 , 576653 , 582468 , 582797 , 588286 , 590943 , 591792 , 592174 , 593877 , 598863 , 599844 , 599967 , 600843 , 601034 , 602974 , 605398 , 607707 , 610060 , 610588 , 633423 , 634885 , 639722 , 642407 , 643252 , 671667 );
Copy