4
8.89 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
732000
655184
794344
774702
813436
544443
749468
765715
642781
629167
673223
707456
580622
810261
717974
711947
489946
720042
761467
775705
511262
533379
467110
674936
666732
806797
556837
521588
537929
650192
648535
637025
666723
535006
530850
531091
545201
581242
536826
642750
782533
436304
592302
637009
532848
536835
537890
810229
510681
656319
414198
475921
679801
532741
413971
674952
536248
503110
477757
623198
496269
527198
612399
532643
518473
]
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 (732000 , 655184 , 794344 , 774702 , 813436 , 544443 , 749468 , 765715 , 642781 , 629167 , 673223 , 707456 , 580622 , 810261 , 717974 , 711947 , 489946 , 720042 , 761467 , 775705 , 511262 , 533379 , 467110 , 674936 , 666732 , 806797 , 556837 , 521588 , 537929 , 650192 , 648535 , 637025 , 666723 , 535006 , 530850 , 531091 , 545201 , 581242 , 536826 , 642750 , 782533 , 436304 , 592302 , 637009 , 532848 , 536835 , 537890 , 810229 , 510681 , 656319 , 414198 , 475921 , 679801 , 532741 , 413971 , 674952 , 536248 , 503110 , 477757 , 623198 , 496269 , 527198 , 612399 , 532643 , 518473 );
Copy
5
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
413971
414198
436304
467110
475921
477757
489946
496269
503110
510681
511262
518473
521588
527198
530850
531091
532643
532741
532848
533379
535006
536248
536826
536835
537890
537929
544443
545201
556837
580622
581242
592302
612399
623198
629167
637009
637025
642750
642781
648535
650192
655184
656319
666723
666732
673223
674936
674952
679801
707456
711947
717974
720042
732000
749468
761467
765715
774702
775705
782533
794344
806797
810229
810261
813436
]
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 (413971 , 414198 , 436304 , 467110 , 475921 , 477757 , 489946 , 496269 , 503110 , 510681 , 511262 , 518473 , 521588 , 527198 , 530850 , 531091 , 532643 , 532741 , 532848 , 533379 , 535006 , 536248 , 536826 , 536835 , 537890 , 537929 , 544443 , 545201 , 556837 , 580622 , 581242 , 592302 , 612399 , 623198 , 629167 , 637009 , 637025 , 642750 , 642781 , 648535 , 650192 , 655184 , 656319 , 666723 , 666732 , 673223 , 674936 , 674952 , 679801 , 707456 , 711947 , 717974 , 720042 , 732000 , 749468 , 761467 , 765715 , 774702 , 775705 , 782533 , 794344 , 806797 , 810229 , 810261 , 813436 );
Copy
6
84.18 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
413971
414198
436304
467110
475921
477757
489946
496269
503110
510681
511262
518473
521588
527198
530850
531091
532643
532741
532848
533379
535006
536248
536826
536835
537890
537929
544443
545201
556837
580622
581242
592302
612399
623198
629167
637009
637025
642750
642781
648535
650192
655184
656319
666723
666732
673223
674936
674952
679801
707456
711947
717974
720042
732000
749468
761467
765715
774702
775705
782533
794344
806797
810229
810261
813436
]
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 (413971 , 414198 , 436304 , 467110 , 475921 , 477757 , 489946 , 496269 , 503110 , 510681 , 511262 , 518473 , 521588 , 527198 , 530850 , 531091 , 532643 , 532741 , 532848 , 533379 , 535006 , 536248 , 536826 , 536835 , 537890 , 537929 , 544443 , 545201 , 556837 , 580622 , 581242 , 592302 , 612399 , 623198 , 629167 , 637009 , 637025 , 642750 , 642781 , 648535 , 650192 , 655184 , 656319 , 666723 , 666732 , 673223 , 674936 , 674952 , 679801 , 707456 , 711947 , 717974 , 720042 , 732000 , 749468 , 761467 , 765715 , 774702 , 775705 , 782533 , 794344 , 806797 , 810229 , 810261 , 813436 );
Copy