3
9.35 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
710516
427580
621778
453900
527678
823036
823216
725071
706644
822204
526351
820485
616087
822651
805979
822305
537975
803382
778159
735962
822981
822300
822154
822219
545873
656876
822426
822479
820882
668640
419356
814352
821406
822428
822645
821586
549527
554879
558636
701548
784286
402343
822212
821316
822642
823501
458431
544725
706457
634477
728123
773130
527356
653378
579947
756966
499968
624429
391920
524610
530385
467571
495326
596437
618596
504700
513338
]
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 (710516 , 427580 , 621778 , 453900 , 527678 , 823036 , 823216 , 725071 , 706644 , 822204 , 526351 , 820485 , 616087 , 822651 , 805979 , 822305 , 537975 , 803382 , 778159 , 735962 , 822981 , 822300 , 822154 , 822219 , 545873 , 656876 , 822426 , 822479 , 820882 , 668640 , 419356 , 814352 , 821406 , 822428 , 822645 , 821586 , 549527 , 554879 , 558636 , 701548 , 784286 , 402343 , 822212 , 821316 , 822642 , 823501 , 458431 , 544725 , 706457 , 634477 , 728123 , 773130 , 527356 , 653378 , 579947 , 756966 , 499968 , 624429 , 391920 , 524610 , 530385 , 467571 , 495326 , 596437 , 618596 , 504700 , 513338 );
Copy
4
2.55 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
391920
402343
419356
427580
453900
458431
467571
495326
499968
504700
513338
524610
526351
527356
527678
530385
537975
544725
545873
549527
558636
579947
596437
616087
618596
621778
624429
634477
653378
656876
668640
701548
706457
706644
710516
725071
728123
735962
756966
773130
778159
784286
803382
805979
814352
820485
820882
821316
821406
821586
822154
822204
822212
822219
822300
822305
822426
822428
822479
822642
822645
822651
822981
823036
823216
823501
]
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 (391920 , 402343 , 419356 , 427580 , 453900 , 458431 , 467571 , 495326 , 499968 , 504700 , 513338 , 524610 , 526351 , 527356 , 527678 , 530385 , 537975 , 544725 , 545873 , 549527 , 558636 , 579947 , 596437 , 616087 , 618596 , 621778 , 624429 , 634477 , 653378 , 656876 , 668640 , 701548 , 706457 , 706644 , 710516 , 725071 , 728123 , 735962 , 756966 , 773130 , 778159 , 784286 , 803382 , 805979 , 814352 , 820485 , 820882 , 821316 , 821406 , 821586 , 822154 , 822204 , 822212 , 822219 , 822300 , 822305 , 822426 , 822428 , 822479 , 822642 , 822645 , 822651 , 822981 , 823036 , 823216 , 823501 );
Copy
5
91.22 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
391920
402343
419356
427580
453900
458431
467571
495326
499968
504700
513338
524610
526351
527356
527678
530385
537975
544725
545873
549527
558636
579947
596437
616087
618596
621778
624429
634477
653378
656876
668640
701548
706457
706644
710516
725071
728123
735962
756966
773130
778159
784286
803382
805979
814352
820485
820882
821316
821406
821586
822154
822204
822212
822219
822300
822305
822426
822428
822479
822642
822645
822651
822981
823036
823216
823501
]
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 (391920 , 402343 , 419356 , 427580 , 453900 , 458431 , 467571 , 495326 , 499968 , 504700 , 513338 , 524610 , 526351 , 527356 , 527678 , 530385 , 537975 , 544725 , 545873 , 549527 , 558636 , 579947 , 596437 , 616087 , 618596 , 621778 , 624429 , 634477 , 653378 , 656876 , 668640 , 701548 , 706457 , 706644 , 710516 , 725071 , 728123 , 735962 , 756966 , 773130 , 778159 , 784286 , 803382 , 805979 , 814352 , 820485 , 820882 , 821316 , 821406 , 821586 , 822154 , 822204 , 822212 , 822219 , 822300 , 822305 , 822426 , 822428 , 822479 , 822642 , 822645 , 822651 , 822981 , 823036 , 823216 , 823501 );
Copy