3
13.92 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
579827
398360
713506
604775
703070
424394
671756
457651
719054
28397
457978
435462
418068
550429
446061
471759
457728
383539
759383
516024
469236
416905
509802
774144
473780
530425
747119
721312
402723
391600
444234
456198
770262
801274
728353
529114
581050
741548
800538
505805
755467
752679
428703
442367
490201
479676
532444
776969
282138
458013
766847
690153
383748
532969
802379
759365
813101
604537
470015
789614
501651
523306
501227
631171
577031
522920
475275
647893
519198
]
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 (579827 , 398360 , 713506 , 604775 , 703070 , 424394 , 671756 , 457651 , 719054 , 28397 , 457978 , 435462 , 418068 , 550429 , 446061 , 471759 , 457728 , 383539 , 759383 , 516024 , 469236 , 416905 , 509802 , 774144 , 473780 , 530425 , 747119 , 721312 , 402723 , 391600 , 444234 , 456198 , 770262 , 801274 , 728353 , 529114 , 581050 , 741548 , 800538 , 505805 , 755467 , 752679 , 428703 , 442367 , 490201 , 479676 , 532444 , 776969 , 282138 , 458013 , 766847 , 690153 , 383748 , 532969 , 802379 , 759365 , 813101 , 604537 , 470015 , 789614 , 501651 , 523306 , 501227 , 631171 , 577031 , 522920 , 475275 , 647893 , 519198 );
Copy
4
2.62 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
28397
282138
383539
383748
391600
398360
402723
416905
418068
424394
428703
435462
442367
444234
446061
456198
457651
457728
457978
458013
469236
470015
471759
473780
475275
479676
490201
501227
501651
505805
509802
516024
519198
522920
523306
529114
530425
532444
532969
550429
577031
579827
581050
604537
604775
631171
647893
671756
690153
703070
713506
719054
721312
728353
741548
747119
752679
755467
759365
759383
766847
770262
774144
776969
789614
800538
801274
802379
813101
]
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 (28397 , 282138 , 383539 , 383748 , 391600 , 398360 , 402723 , 416905 , 418068 , 424394 , 428703 , 435462 , 442367 , 444234 , 446061 , 456198 , 457651 , 457728 , 457978 , 458013 , 469236 , 470015 , 471759 , 473780 , 475275 , 479676 , 490201 , 501227 , 501651 , 505805 , 509802 , 516024 , 519198 , 522920 , 523306 , 529114 , 530425 , 532444 , 532969 , 550429 , 577031 , 579827 , 581050 , 604537 , 604775 , 631171 , 647893 , 671756 , 690153 , 703070 , 713506 , 719054 , 721312 , 728353 , 741548 , 747119 , 752679 , 755467 , 759365 , 759383 , 766847 , 770262 , 774144 , 776969 , 789614 , 800538 , 801274 , 802379 , 813101 );
Copy
5
101.42 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
28397
282138
383539
383748
391600
398360
402723
416905
418068
424394
428703
435462
442367
444234
446061
456198
457651
457728
457978
458013
469236
470015
471759
473780
475275
479676
490201
501227
501651
505805
509802
516024
519198
522920
523306
529114
530425
532444
532969
550429
577031
579827
581050
604537
604775
631171
647893
671756
690153
703070
713506
719054
721312
728353
741548
747119
752679
755467
759365
759383
766847
770262
774144
776969
789614
800538
801274
802379
813101
]
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 (28397 , 282138 , 383539 , 383748 , 391600 , 398360 , 402723 , 416905 , 418068 , 424394 , 428703 , 435462 , 442367 , 444234 , 446061 , 456198 , 457651 , 457728 , 457978 , 458013 , 469236 , 470015 , 471759 , 473780 , 475275 , 479676 , 490201 , 501227 , 501651 , 505805 , 509802 , 516024 , 519198 , 522920 , 523306 , 529114 , 530425 , 532444 , 532969 , 550429 , 577031 , 579827 , 581050 , 604537 , 604775 , 631171 , 647893 , 671756 , 690153 , 703070 , 713506 , 719054 , 721312 , 728353 , 741548 , 747119 , 752679 , 755467 , 759365 , 759383 , 766847 , 770262 , 774144 , 776969 , 789614 , 800538 , 801274 , 802379 , 813101 );
Copy