3
10.06 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
572320
565905
627102
516658
505231
559776
560063
659406
696202
601320
602232
423898
491724
540696
460580
470546
501028
671413
751572
481816
512014
522281
519521
593114
597086
516719
512270
470584
610766
588943
599324
563362
482747
564363
578898
525555
755176
516496
607027
487719
601845
619513
557977
587130
718798
472138
628208
584636
452977
621275
598172
591169
626311
526730
466251
615623
618797
552466
619308
608073
619519
617219
547612
624095
590587
624430
598046
626497
]
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 (572320 , 565905 , 627102 , 516658 , 505231 , 559776 , 560063 , 659406 , 696202 , 601320 , 602232 , 423898 , 491724 , 540696 , 460580 , 470546 , 501028 , 671413 , 751572 , 481816 , 512014 , 522281 , 519521 , 593114 , 597086 , 516719 , 512270 , 470584 , 610766 , 588943 , 599324 , 563362 , 482747 , 564363 , 578898 , 525555 , 755176 , 516496 , 607027 , 487719 , 601845 , 619513 , 557977 , 587130 , 718798 , 472138 , 628208 , 584636 , 452977 , 621275 , 598172 , 591169 , 626311 , 526730 , 466251 , 615623 , 618797 , 552466 , 619308 , 608073 , 619519 , 617219 , 547612 , 624095 , 590587 , 624430 , 598046 , 626497 );
Copy
4
2.31 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
423898
452977
460580
466251
470546
470584
472138
481816
482747
487719
491724
501028
505231
512014
512270
516496
516658
516719
519521
522281
525555
526730
540696
547612
552466
557977
559776
560063
563362
564363
565905
572320
578898
584636
587130
588943
590587
591169
593114
597086
598046
598172
599324
601320
601845
602232
607027
608073
610766
615623
617219
618797
619308
619513
619519
621275
624095
624430
626311
626497
627102
628208
659406
671413
696202
718798
751572
755176
]
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 (423898 , 452977 , 460580 , 466251 , 470546 , 470584 , 472138 , 481816 , 482747 , 487719 , 491724 , 501028 , 505231 , 512014 , 512270 , 516496 , 516658 , 516719 , 519521 , 522281 , 525555 , 526730 , 540696 , 547612 , 552466 , 557977 , 559776 , 560063 , 563362 , 564363 , 565905 , 572320 , 578898 , 584636 , 587130 , 588943 , 590587 , 591169 , 593114 , 597086 , 598046 , 598172 , 599324 , 601320 , 601845 , 602232 , 607027 , 608073 , 610766 , 615623 , 617219 , 618797 , 619308 , 619513 , 619519 , 621275 , 624095 , 624430 , 626311 , 626497 , 627102 , 628208 , 659406 , 671413 , 696202 , 718798 , 751572 , 755176 );
Copy
5
75.58 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
423898
452977
460580
466251
470546
470584
472138
481816
482747
487719
491724
501028
505231
512014
512270
516496
516658
516719
519521
522281
525555
526730
540696
547612
552466
557977
559776
560063
563362
564363
565905
572320
578898
584636
587130
588943
590587
591169
593114
597086
598046
598172
599324
601320
601845
602232
607027
608073
610766
615623
617219
618797
619308
619513
619519
621275
624095
624430
626311
626497
627102
628208
659406
671413
696202
718798
751572
755176
]
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 (423898 , 452977 , 460580 , 466251 , 470546 , 470584 , 472138 , 481816 , 482747 , 487719 , 491724 , 501028 , 505231 , 512014 , 512270 , 516496 , 516658 , 516719 , 519521 , 522281 , 525555 , 526730 , 540696 , 547612 , 552466 , 557977 , 559776 , 560063 , 563362 , 564363 , 565905 , 572320 , 578898 , 584636 , 587130 , 588943 , 590587 , 591169 , 593114 , 597086 , 598046 , 598172 , 599324 , 601320 , 601845 , 602232 , 607027 , 608073 , 610766 , 615623 , 617219 , 618797 , 619308 , 619513 , 619519 , 621275 , 624095 , 624430 , 626311 , 626497 , 627102 , 628208 , 659406 , 671413 , 696202 , 718798 , 751572 , 755176 );
Copy