3
10.77 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
417897
96205
486746
528098
662022
729826
389987
577376
468637
562838
732954
783627
809941
807196
644274
790754
539533
654078
794637
421323
535456
657244
710500
652805
643007
393050
541923
97096
387848
678915
682478
649202
635050
644303
387251
466907
493260
647600
667693
637107
400943
410937
406332
465060
563546
477058
596351
401500
467597
470034
470527
478672
522878
486862
535282
474706
543374
443244
282010
430204
554392
582179
459857
449123
556025
595369
617423
558191
553280
]
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 (417897 , 96205 , 486746 , 528098 , 662022 , 729826 , 389987 , 577376 , 468637 , 562838 , 732954 , 783627 , 809941 , 807196 , 644274 , 790754 , 539533 , 654078 , 794637 , 421323 , 535456 , 657244 , 710500 , 652805 , 643007 , 393050 , 541923 , 97096 , 387848 , 678915 , 682478 , 649202 , 635050 , 644303 , 387251 , 466907 , 493260 , 647600 , 667693 , 637107 , 400943 , 410937 , 406332 , 465060 , 563546 , 477058 , 596351 , 401500 , 467597 , 470034 , 470527 , 478672 , 522878 , 486862 , 535282 , 474706 , 543374 , 443244 , 282010 , 430204 , 554392 , 582179 , 459857 , 449123 , 556025 , 595369 , 617423 , 558191 , 553280 );
Copy
4
3.35 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
96205
97096
282010
387251
387848
389987
393050
400943
401500
406332
410937
417897
421323
430204
443244
449123
459857
465060
466907
467597
468637
470034
470527
474706
477058
478672
486746
486862
493260
522878
528098
535282
535456
539533
541923
543374
553280
554392
556025
558191
562838
563546
577376
582179
595369
596351
617423
635050
637107
643007
644274
644303
647600
649202
652805
654078
657244
662022
667693
678915
682478
710500
729826
732954
783627
790754
794637
807196
809941
]
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 (96205 , 97096 , 282010 , 387251 , 387848 , 389987 , 393050 , 400943 , 401500 , 406332 , 410937 , 417897 , 421323 , 430204 , 443244 , 449123 , 459857 , 465060 , 466907 , 467597 , 468637 , 470034 , 470527 , 474706 , 477058 , 478672 , 486746 , 486862 , 493260 , 522878 , 528098 , 535282 , 535456 , 539533 , 541923 , 543374 , 553280 , 554392 , 556025 , 558191 , 562838 , 563546 , 577376 , 582179 , 595369 , 596351 , 617423 , 635050 , 637107 , 643007 , 644274 , 644303 , 647600 , 649202 , 652805 , 654078 , 657244 , 662022 , 667693 , 678915 , 682478 , 710500 , 729826 , 732954 , 783627 , 790754 , 794637 , 807196 , 809941 );
Copy
5
164.68 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
96205
97096
282010
387251
387848
389987
393050
400943
401500
406332
410937
417897
421323
430204
443244
449123
459857
465060
466907
467597
468637
470034
470527
474706
477058
478672
486746
486862
493260
522878
528098
535282
535456
539533
541923
543374
553280
554392
556025
558191
562838
563546
577376
582179
595369
596351
617423
635050
637107
643007
644274
644303
647600
649202
652805
654078
657244
662022
667693
678915
682478
710500
729826
732954
783627
790754
794637
807196
809941
]
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 (96205 , 97096 , 282010 , 387251 , 387848 , 389987 , 393050 , 400943 , 401500 , 406332 , 410937 , 417897 , 421323 , 430204 , 443244 , 449123 , 459857 , 465060 , 466907 , 467597 , 468637 , 470034 , 470527 , 474706 , 477058 , 478672 , 486746 , 486862 , 493260 , 522878 , 528098 , 535282 , 535456 , 539533 , 541923 , 543374 , 553280 , 554392 , 556025 , 558191 , 562838 , 563546 , 577376 , 582179 , 595369 , 596351 , 617423 , 635050 , 637107 , 643007 , 644274 , 644303 , 647600 , 649202 , 652805 , 654078 , 657244 , 662022 , 667693 , 678915 , 682478 , 710500 , 729826 , 732954 , 783627 , 790754 , 794637 , 807196 , 809941 );
Copy