4
12.57 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
476664
447238
535457
556860
559825
575307
670526
672305
575998
606192
588315
591127
807621
731626
755544
795262
796275
740164
759855
760707
634192
411033
475645
439465
420119
815199
473746
473836
506347
581274
670566
647899
676303
591650
640520
586161
776531
725613
450158
492433
489265
507215
46580
425925
551824
674473
717793
558221
590306
590839
590947
741016
524627
528842
522470
587286
527434
498056
521617
556783
609147
524951
545828
]
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 (476664 , 447238 , 535457 , 556860 , 559825 , 575307 , 670526 , 672305 , 575998 , 606192 , 588315 , 591127 , 807621 , 731626 , 755544 , 795262 , 796275 , 740164 , 759855 , 760707 , 634192 , 411033 , 475645 , 439465 , 420119 , 815199 , 473746 , 473836 , 506347 , 581274 , 670566 , 647899 , 676303 , 591650 , 640520 , 586161 , 776531 , 725613 , 450158 , 492433 , 489265 , 507215 , 46580 , 425925 , 551824 , 674473 , 717793 , 558221 , 590306 , 590839 , 590947 , 741016 , 524627 , 528842 , 522470 , 587286 , 527434 , 498056 , 521617 , 556783 , 609147 , 524951 , 545828 );
Copy
5
2.35 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
46580
411033
420119
425925
439465
447238
450158
473746
473836
475645
476664
489265
492433
498056
506347
507215
521617
522470
524627
524951
527434
528842
535457
545828
551824
556783
556860
558221
559825
575307
575998
581274
586161
587286
588315
590306
590839
590947
591127
591650
606192
609147
634192
640520
647899
670526
670566
672305
674473
676303
717793
725613
731626
740164
741016
755544
759855
760707
776531
795262
796275
807621
815199
]
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 (46580 , 411033 , 420119 , 425925 , 439465 , 447238 , 450158 , 473746 , 473836 , 475645 , 476664 , 489265 , 492433 , 498056 , 506347 , 507215 , 521617 , 522470 , 524627 , 524951 , 527434 , 528842 , 535457 , 545828 , 551824 , 556783 , 556860 , 558221 , 559825 , 575307 , 575998 , 581274 , 586161 , 587286 , 588315 , 590306 , 590839 , 590947 , 591127 , 591650 , 606192 , 609147 , 634192 , 640520 , 647899 , 670526 , 670566 , 672305 , 674473 , 676303 , 717793 , 725613 , 731626 , 740164 , 741016 , 755544 , 759855 , 760707 , 776531 , 795262 , 796275 , 807621 , 815199 );
Copy
6
69.60 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
46580
411033
420119
425925
439465
447238
450158
473746
473836
475645
476664
489265
492433
498056
506347
507215
521617
522470
524627
524951
527434
528842
535457
545828
551824
556783
556860
558221
559825
575307
575998
581274
586161
587286
588315
590306
590839
590947
591127
591650
606192
609147
634192
640520
647899
670526
670566
672305
674473
676303
717793
725613
731626
740164
741016
755544
759855
760707
776531
795262
796275
807621
815199
]
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 (46580 , 411033 , 420119 , 425925 , 439465 , 447238 , 450158 , 473746 , 473836 , 475645 , 476664 , 489265 , 492433 , 498056 , 506347 , 507215 , 521617 , 522470 , 524627 , 524951 , 527434 , 528842 , 535457 , 545828 , 551824 , 556783 , 556860 , 558221 , 559825 , 575307 , 575998 , 581274 , 586161 , 587286 , 588315 , 590306 , 590839 , 590947 , 591127 , 591650 , 606192 , 609147 , 634192 , 640520 , 647899 , 670526 , 670566 , 672305 , 674473 , 676303 , 717793 , 725613 , 731626 , 740164 , 741016 , 755544 , 759855 , 760707 , 776531 , 795262 , 796275 , 807621 , 815199 );
Copy