3
8.94 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
449111
598041
776283
479046
512438
524142
551560
475530
512436
650539
563217
658466
779552
467841
675477
721502
783229
809624
723665
732818
757565
496054
810733
743953
515294
449102
388280
551029
704596
721096
458892
552483
618854
449114
556532
648567
693586
736908
490908
700375
424494
461232
598013
547835
548571
428381
472438
490879
491393
515306
619180
490864
503047
563050
552362
574836
587880
458878
469914
505202
491395
640690
548569
548545
420604
498222
480461
489097
593487
593372
]
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 (449111 , 598041 , 776283 , 479046 , 512438 , 524142 , 551560 , 475530 , 512436 , 650539 , 563217 , 658466 , 779552 , 467841 , 675477 , 721502 , 783229 , 809624 , 723665 , 732818 , 757565 , 496054 , 810733 , 743953 , 515294 , 449102 , 388280 , 551029 , 704596 , 721096 , 458892 , 552483 , 618854 , 449114 , 556532 , 648567 , 693586 , 736908 , 490908 , 700375 , 424494 , 461232 , 598013 , 547835 , 548571 , 428381 , 472438 , 490879 , 491393 , 515306 , 619180 , 490864 , 503047 , 563050 , 552362 , 574836 , 587880 , 458878 , 469914 , 505202 , 491395 , 640690 , 548569 , 548545 , 420604 , 498222 , 480461 , 489097 , 593487 , 593372 );
Copy
4
2.50 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
388280
420604
424494
428381
449102
449111
449114
458878
458892
461232
467841
469914
472438
475530
479046
480461
489097
490864
490879
490908
491393
491395
496054
498222
503047
505202
512436
512438
515294
515306
524142
547835
548545
548569
548571
551029
551560
552362
552483
556532
563050
563217
574836
587880
593372
593487
598013
598041
618854
619180
640690
648567
650539
658466
675477
693586
700375
704596
721096
721502
723665
732818
736908
743953
757565
776283
779552
783229
809624
810733
]
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 (388280 , 420604 , 424494 , 428381 , 449102 , 449111 , 449114 , 458878 , 458892 , 461232 , 467841 , 469914 , 472438 , 475530 , 479046 , 480461 , 489097 , 490864 , 490879 , 490908 , 491393 , 491395 , 496054 , 498222 , 503047 , 505202 , 512436 , 512438 , 515294 , 515306 , 524142 , 547835 , 548545 , 548569 , 548571 , 551029 , 551560 , 552362 , 552483 , 556532 , 563050 , 563217 , 574836 , 587880 , 593372 , 593487 , 598013 , 598041 , 618854 , 619180 , 640690 , 648567 , 650539 , 658466 , 675477 , 693586 , 700375 , 704596 , 721096 , 721502 , 723665 , 732818 , 736908 , 743953 , 757565 , 776283 , 779552 , 783229 , 809624 , 810733 );
Copy
5
117.00 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
388280
420604
424494
428381
449102
449111
449114
458878
458892
461232
467841
469914
472438
475530
479046
480461
489097
490864
490879
490908
491393
491395
496054
498222
503047
505202
512436
512438
515294
515306
524142
547835
548545
548569
548571
551029
551560
552362
552483
556532
563050
563217
574836
587880
593372
593487
598013
598041
618854
619180
640690
648567
650539
658466
675477
693586
700375
704596
721096
721502
723665
732818
736908
743953
757565
776283
779552
783229
809624
810733
]
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 (388280 , 420604 , 424494 , 428381 , 449102 , 449111 , 449114 , 458878 , 458892 , 461232 , 467841 , 469914 , 472438 , 475530 , 479046 , 480461 , 489097 , 490864 , 490879 , 490908 , 491393 , 491395 , 496054 , 498222 , 503047 , 505202 , 512436 , 512438 , 515294 , 515306 , 524142 , 547835 , 548545 , 548569 , 548571 , 551029 , 551560 , 552362 , 552483 , 556532 , 563050 , 563217 , 574836 , 587880 , 593372 , 593487 , 598013 , 598041 , 618854 , 619180 , 640690 , 648567 , 650539 , 658466 , 675477 , 693586 , 700375 , 704596 , 721096 , 721502 , 723665 , 732818 , 736908 , 743953 , 757565 , 776283 , 779552 , 783229 , 809624 , 810733 );
Copy