3
10.73 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
828560
692451
529728
708851
804293
783381
783752
541547
594411
772404
788596
744938
812983
445266
417272
806882
469760
417783
658216
798013
747740
787506
793427
461168
560997
574824
687299
766996
740607
761096
770784
806797
459560
419567
511475
556115
737110
765319
770276
433686
446861
516894
545192
579851
592607
612414
618471
793431
436135
423682
479006
479590
417943
528035
499612
546215
567608
651561
600382
438725
500896
517393
470829
561296
461375
]
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 (828560 , 692451 , 529728 , 708851 , 804293 , 783381 , 783752 , 541547 , 594411 , 772404 , 788596 , 744938 , 812983 , 445266 , 417272 , 806882 , 469760 , 417783 , 658216 , 798013 , 747740 , 787506 , 793427 , 461168 , 560997 , 574824 , 687299 , 766996 , 740607 , 761096 , 770784 , 806797 , 459560 , 419567 , 511475 , 556115 , 737110 , 765319 , 770276 , 433686 , 446861 , 516894 , 545192 , 579851 , 592607 , 612414 , 618471 , 793431 , 436135 , 423682 , 479006 , 479590 , 417943 , 528035 , 499612 , 546215 , 567608 , 651561 , 600382 , 438725 , 500896 , 517393 , 470829 , 561296 , 461375 );
Copy
4
2.64 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
417272
417783
417943
419567
423682
433686
436135
438725
445266
446861
459560
461168
461375
469760
470829
479006
479590
499612
500896
511475
516894
517393
528035
529728
541547
545192
546215
556115
560997
561296
567608
574824
579851
592607
594411
600382
612414
618471
651561
658216
687299
692451
708851
737110
740607
744938
747740
761096
765319
766996
770276
770784
772404
783381
783752
787506
788596
793427
793431
798013
804293
806797
806882
812983
828560
]
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 (417272 , 417783 , 417943 , 419567 , 423682 , 433686 , 436135 , 438725 , 445266 , 446861 , 459560 , 461168 , 461375 , 469760 , 470829 , 479006 , 479590 , 499612 , 500896 , 511475 , 516894 , 517393 , 528035 , 529728 , 541547 , 545192 , 546215 , 556115 , 560997 , 561296 , 567608 , 574824 , 579851 , 592607 , 594411 , 600382 , 612414 , 618471 , 651561 , 658216 , 687299 , 692451 , 708851 , 737110 , 740607 , 744938 , 747740 , 761096 , 765319 , 766996 , 770276 , 770784 , 772404 , 783381 , 783752 , 787506 , 788596 , 793427 , 793431 , 798013 , 804293 , 806797 , 806882 , 812983 , 828560 );
Copy
5
82.96 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
417272
417783
417943
419567
423682
433686
436135
438725
445266
446861
459560
461168
461375
469760
470829
479006
479590
499612
500896
511475
516894
517393
528035
529728
541547
545192
546215
556115
560997
561296
567608
574824
579851
592607
594411
600382
612414
618471
651561
658216
687299
692451
708851
737110
740607
744938
747740
761096
765319
766996
770276
770784
772404
783381
783752
787506
788596
793427
793431
798013
804293
806797
806882
812983
828560
]
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 (417272 , 417783 , 417943 , 419567 , 423682 , 433686 , 436135 , 438725 , 445266 , 446861 , 459560 , 461168 , 461375 , 469760 , 470829 , 479006 , 479590 , 499612 , 500896 , 511475 , 516894 , 517393 , 528035 , 529728 , 541547 , 545192 , 546215 , 556115 , 560997 , 561296 , 567608 , 574824 , 579851 , 592607 , 594411 , 600382 , 612414 , 618471 , 651561 , 658216 , 687299 , 692451 , 708851 , 737110 , 740607 , 744938 , 747740 , 761096 , 765319 , 766996 , 770276 , 770784 , 772404 , 783381 , 783752 , 787506 , 788596 , 793427 , 793431 , 798013 , 804293 , 806797 , 806882 , 812983 , 828560 );
Copy