3
13.04 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
681210
691797
664441
604843
807589
782892
770410
419352
429872
419816
518885
560925
398124
391950
450889
514876
454086
448522
555571
577783
586721
626089
788344
787989
738503
806668
430355
434365
472266
434335
493816
599313
467923
535332
598233
417674
521798
468912
710161
435398
444915
438748
449584
561970
518014
553441
584118
429879
427112
445175
489377
469198
413373
432334
528143
614474
460314
429899
583021
460441
469027
518007
548441
440041
527624
]
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 (681210 , 691797 , 664441 , 604843 , 807589 , 782892 , 770410 , 419352 , 429872 , 419816 , 518885 , 560925 , 398124 , 391950 , 450889 , 514876 , 454086 , 448522 , 555571 , 577783 , 586721 , 626089 , 788344 , 787989 , 738503 , 806668 , 430355 , 434365 , 472266 , 434335 , 493816 , 599313 , 467923 , 535332 , 598233 , 417674 , 521798 , 468912 , 710161 , 435398 , 444915 , 438748 , 449584 , 561970 , 518014 , 553441 , 584118 , 429879 , 427112 , 445175 , 489377 , 469198 , 413373 , 432334 , 528143 , 614474 , 460314 , 429899 , 583021 , 460441 , 469027 , 518007 , 548441 , 440041 , 527624 );
Copy
4
2.24 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
391950
398124
413373
417674
419352
419816
427112
429872
429879
429899
430355
432334
434335
434365
435398
438748
440041
444915
445175
448522
449584
450889
454086
460314
460441
467923
468912
469027
469198
472266
489377
493816
514876
518007
518014
518885
521798
527624
528143
535332
548441
553441
555571
560925
561970
577783
583021
584118
586721
598233
599313
604843
614474
626089
664441
681210
691797
710161
738503
770410
782892
788344
806668
807589
]
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 (391950 , 398124 , 413373 , 417674 , 419352 , 419816 , 427112 , 429872 , 429879 , 429899 , 430355 , 432334 , 434335 , 434365 , 435398 , 438748 , 440041 , 444915 , 445175 , 448522 , 449584 , 450889 , 454086 , 460314 , 460441 , 467923 , 468912 , 469027 , 469198 , 472266 , 489377 , 493816 , 514876 , 518007 , 518014 , 518885 , 521798 , 527624 , 528143 , 535332 , 548441 , 553441 , 555571 , 560925 , 561970 , 577783 , 583021 , 584118 , 586721 , 598233 , 599313 , 604843 , 614474 , 626089 , 664441 , 681210 , 691797 , 710161 , 738503 , 770410 , 782892 , 788344 , 806668 , 807589 );
Copy
5
95.25 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
391950
398124
413373
417674
419352
419816
427112
429872
429879
429899
430355
432334
434335
434365
435398
438748
440041
444915
445175
448522
449584
450889
454086
460314
460441
467923
468912
469027
469198
472266
489377
493816
514876
518007
518014
518885
521798
527624
528143
535332
548441
553441
555571
560925
561970
577783
583021
584118
586721
598233
599313
604843
614474
626089
664441
681210
691797
710161
738503
770410
782892
788344
806668
807589
]
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 (391950 , 398124 , 413373 , 417674 , 419352 , 419816 , 427112 , 429872 , 429879 , 429899 , 430355 , 432334 , 434335 , 434365 , 435398 , 438748 , 440041 , 444915 , 445175 , 448522 , 449584 , 450889 , 454086 , 460314 , 460441 , 467923 , 468912 , 469027 , 469198 , 472266 , 489377 , 493816 , 514876 , 518007 , 518014 , 518885 , 521798 , 527624 , 528143 , 535332 , 548441 , 553441 , 555571 , 560925 , 561970 , 577783 , 583021 , 584118 , 586721 , 598233 , 599313 , 604843 , 614474 , 626089 , 664441 , 681210 , 691797 , 710161 , 738503 , 770410 , 782892 , 788344 , 806668 , 807589 );
Copy