3
13.80 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
397881
667898
444141
445631
420525
435496
531539
496281
577211
425490
525701
666842
410267
667219
807990
463171
405028
548606
663856
666766
589553
415746
472142
484703
490304
665264
665466
644691
477735
484643
408214
502537
502541
517440
637145
486083
462324
482304
404678
484624
484648
466307
485702
678778
678782
678790
475807
663956
444143
526693
413972
678804
549176
678779
544816
459830
488308
419546
445641
428103
466928
451957
520840
713176
522616
500971
614737
541924
549239
]
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 (397881 , 667898 , 444141 , 445631 , 420525 , 435496 , 531539 , 496281 , 577211 , 425490 , 525701 , 666842 , 410267 , 667219 , 807990 , 463171 , 405028 , 548606 , 663856 , 666766 , 589553 , 415746 , 472142 , 484703 , 490304 , 665264 , 665466 , 644691 , 477735 , 484643 , 408214 , 502537 , 502541 , 517440 , 637145 , 486083 , 462324 , 482304 , 404678 , 484624 , 484648 , 466307 , 485702 , 678778 , 678782 , 678790 , 475807 , 663956 , 444143 , 526693 , 413972 , 678804 , 549176 , 678779 , 544816 , 459830 , 488308 , 419546 , 445641 , 428103 , 466928 , 451957 , 520840 , 713176 , 522616 , 500971 , 614737 , 541924 , 549239 );
Copy
4
2.83 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
397881
404678
405028
408214
410267
413972
415746
419546
420525
425490
428103
435496
444141
444143
445631
445641
451957
459830
462324
463171
466307
466928
472142
475807
477735
482304
484624
484643
484648
484703
485702
486083
488308
490304
496281
500971
502537
502541
517440
520840
522616
525701
526693
531539
541924
544816
548606
549176
549239
577211
589553
614737
637145
644691
663856
663956
665264
665466
666766
666842
667219
667898
678778
678779
678782
678790
678804
713176
807990
]
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 (397881 , 404678 , 405028 , 408214 , 410267 , 413972 , 415746 , 419546 , 420525 , 425490 , 428103 , 435496 , 444141 , 444143 , 445631 , 445641 , 451957 , 459830 , 462324 , 463171 , 466307 , 466928 , 472142 , 475807 , 477735 , 482304 , 484624 , 484643 , 484648 , 484703 , 485702 , 486083 , 488308 , 490304 , 496281 , 500971 , 502537 , 502541 , 517440 , 520840 , 522616 , 525701 , 526693 , 531539 , 541924 , 544816 , 548606 , 549176 , 549239 , 577211 , 589553 , 614737 , 637145 , 644691 , 663856 , 663956 , 665264 , 665466 , 666766 , 666842 , 667219 , 667898 , 678778 , 678779 , 678782 , 678790 , 678804 , 713176 , 807990 );
Copy
5
87.55 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
397881
404678
405028
408214
410267
413972
415746
419546
420525
425490
428103
435496
444141
444143
445631
445641
451957
459830
462324
463171
466307
466928
472142
475807
477735
482304
484624
484643
484648
484703
485702
486083
488308
490304
496281
500971
502537
502541
517440
520840
522616
525701
526693
531539
541924
544816
548606
549176
549239
577211
589553
614737
637145
644691
663856
663956
665264
665466
666766
666842
667219
667898
678778
678779
678782
678790
678804
713176
807990
]
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 (397881 , 404678 , 405028 , 408214 , 410267 , 413972 , 415746 , 419546 , 420525 , 425490 , 428103 , 435496 , 444141 , 444143 , 445631 , 445641 , 451957 , 459830 , 462324 , 463171 , 466307 , 466928 , 472142 , 475807 , 477735 , 482304 , 484624 , 484643 , 484648 , 484703 , 485702 , 486083 , 488308 , 490304 , 496281 , 500971 , 502537 , 502541 , 517440 , 520840 , 522616 , 525701 , 526693 , 531539 , 541924 , 544816 , 548606 , 549176 , 549239 , 577211 , 589553 , 614737 , 637145 , 644691 , 663856 , 663956 , 665264 , 665466 , 666766 , 666842 , 667219 , 667898 , 678778 , 678779 , 678782 , 678790 , 678804 , 713176 , 807990 );
Copy