3
14.02 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
397369
426203
425070
454225
488011
490192
494329
495406
612455
485630
411956
485462
482240
484406
498038
517267
521783
559845
575536
556661
591035
808526
726589
417674
425214
529315
518558
528093
515916
558191
589148
406698
484402
459827
477890
589634
614056
586219
620239
629961
462324
524896
505814
523026
491978
546058
598992
599506
454709
460612
478981
486594
494778
524882
520840
533966
540511
424780
430444
522478
522616
593499
589642
453313
489112
502741
468666
]
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 (397369 , 426203 , 425070 , 454225 , 488011 , 490192 , 494329 , 495406 , 612455 , 485630 , 411956 , 485462 , 482240 , 484406 , 498038 , 517267 , 521783 , 559845 , 575536 , 556661 , 591035 , 808526 , 726589 , 417674 , 425214 , 529315 , 518558 , 528093 , 515916 , 558191 , 589148 , 406698 , 484402 , 459827 , 477890 , 589634 , 614056 , 586219 , 620239 , 629961 , 462324 , 524896 , 505814 , 523026 , 491978 , 546058 , 598992 , 599506 , 454709 , 460612 , 478981 , 486594 , 494778 , 524882 , 520840 , 533966 , 540511 , 424780 , 430444 , 522478 , 522616 , 593499 , 589642 , 453313 , 489112 , 502741 , 468666 );
Copy
4
2.54 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
397369
406698
411956
417674
424780
425070
425214
426203
430444
453313
454225
454709
459827
460612
462324
468666
477890
478981
482240
484402
484406
485462
485630
486594
488011
489112
490192
491978
494329
494778
495406
498038
502741
505814
515916
517267
518558
520840
521783
522478
522616
523026
524882
524896
528093
529315
533966
540511
546058
556661
558191
559845
575536
586219
589148
589634
589642
591035
593499
598992
599506
612455
614056
620239
629961
726589
808526
]
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 (397369 , 406698 , 411956 , 417674 , 424780 , 425070 , 425214 , 426203 , 430444 , 453313 , 454225 , 454709 , 459827 , 460612 , 462324 , 468666 , 477890 , 478981 , 482240 , 484402 , 484406 , 485462 , 485630 , 486594 , 488011 , 489112 , 490192 , 491978 , 494329 , 494778 , 495406 , 498038 , 502741 , 505814 , 515916 , 517267 , 518558 , 520840 , 521783 , 522478 , 522616 , 523026 , 524882 , 524896 , 528093 , 529315 , 533966 , 540511 , 546058 , 556661 , 558191 , 559845 , 575536 , 586219 , 589148 , 589634 , 589642 , 591035 , 593499 , 598992 , 599506 , 612455 , 614056 , 620239 , 629961 , 726589 , 808526 );
Copy
5
108.79 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
397369
406698
411956
417674
424780
425070
425214
426203
430444
453313
454225
454709
459827
460612
462324
468666
477890
478981
482240
484402
484406
485462
485630
486594
488011
489112
490192
491978
494329
494778
495406
498038
502741
505814
515916
517267
518558
520840
521783
522478
522616
523026
524882
524896
528093
529315
533966
540511
546058
556661
558191
559845
575536
586219
589148
589634
589642
591035
593499
598992
599506
612455
614056
620239
629961
726589
808526
]
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 (397369 , 406698 , 411956 , 417674 , 424780 , 425070 , 425214 , 426203 , 430444 , 453313 , 454225 , 454709 , 459827 , 460612 , 462324 , 468666 , 477890 , 478981 , 482240 , 484402 , 484406 , 485462 , 485630 , 486594 , 488011 , 489112 , 490192 , 491978 , 494329 , 494778 , 495406 , 498038 , 502741 , 505814 , 515916 , 517267 , 518558 , 520840 , 521783 , 522478 , 522616 , 523026 , 524882 , 524896 , 528093 , 529315 , 533966 , 540511 , 546058 , 556661 , 558191 , 559845 , 575536 , 586219 , 589148 , 589634 , 589642 , 591035 , 593499 , 598992 , 599506 , 612455 , 614056 , 620239 , 629961 , 726589 , 808526 );
Copy