3
10.92 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
489128
666459
462207
468622
569249
456220
462285
96231
820158
715698
717924
717314
430535
523542
503255
456222
514400
471823
521600
527633
462742
593649
423340
524846
468974
537400
560969
606951
623333
810848
446849
533911
503287
580620
454522
573409
542975
531170
647937
720883
473395
509920
540910
500758
469576
447803
522043
515866
598092
521579
562491
676087
678135
420692
513680
583994
521832
443323
566786
609892
544816
674975
647898
624131
]
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 (489128 , 666459 , 462207 , 468622 , 569249 , 456220 , 462285 , 96231 , 820158 , 715698 , 717924 , 717314 , 430535 , 523542 , 503255 , 456222 , 514400 , 471823 , 521600 , 527633 , 462742 , 593649 , 423340 , 524846 , 468974 , 537400 , 560969 , 606951 , 623333 , 810848 , 446849 , 533911 , 503287 , 580620 , 454522 , 573409 , 542975 , 531170 , 647937 , 720883 , 473395 , 509920 , 540910 , 500758 , 469576 , 447803 , 522043 , 515866 , 598092 , 521579 , 562491 , 676087 , 678135 , 420692 , 513680 , 583994 , 521832 , 443323 , 566786 , 609892 , 544816 , 674975 , 647898 , 624131 );
Copy
4
3.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
96231
420692
423340
430535
443323
446849
447803
454522
456220
456222
462207
462285
462742
468622
468974
469576
471823
473395
489128
500758
503255
503287
509920
513680
514400
515866
521579
521600
521832
522043
523542
524846
527633
531170
533911
537400
540910
542975
544816
560969
562491
566786
569249
573409
580620
583994
593649
598092
606951
609892
623333
624131
647898
647937
666459
674975
676087
678135
715698
717314
717924
720883
810848
820158
]
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 (96231 , 420692 , 423340 , 430535 , 443323 , 446849 , 447803 , 454522 , 456220 , 456222 , 462207 , 462285 , 462742 , 468622 , 468974 , 469576 , 471823 , 473395 , 489128 , 500758 , 503255 , 503287 , 509920 , 513680 , 514400 , 515866 , 521579 , 521600 , 521832 , 522043 , 523542 , 524846 , 527633 , 531170 , 533911 , 537400 , 540910 , 542975 , 544816 , 560969 , 562491 , 566786 , 569249 , 573409 , 580620 , 583994 , 593649 , 598092 , 606951 , 609892 , 623333 , 624131 , 647898 , 647937 , 666459 , 674975 , 676087 , 678135 , 715698 , 717314 , 717924 , 720883 , 810848 , 820158 );
Copy
5
72.62 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
96231
420692
423340
430535
443323
446849
447803
454522
456220
456222
462207
462285
462742
468622
468974
469576
471823
473395
489128
500758
503255
503287
509920
513680
514400
515866
521579
521600
521832
522043
523542
524846
527633
531170
533911
537400
540910
542975
544816
560969
562491
566786
569249
573409
580620
583994
593649
598092
606951
609892
623333
624131
647898
647937
666459
674975
676087
678135
715698
717314
717924
720883
810848
820158
]
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 (96231 , 420692 , 423340 , 430535 , 443323 , 446849 , 447803 , 454522 , 456220 , 456222 , 462207 , 462285 , 462742 , 468622 , 468974 , 469576 , 471823 , 473395 , 489128 , 500758 , 503255 , 503287 , 509920 , 513680 , 514400 , 515866 , 521579 , 521600 , 521832 , 522043 , 523542 , 524846 , 527633 , 531170 , 533911 , 537400 , 540910 , 542975 , 544816 , 560969 , 562491 , 566786 , 569249 , 573409 , 580620 , 583994 , 593649 , 598092 , 606951 , 609892 , 623333 , 624131 , 647898 , 647937 , 666459 , 674975 , 676087 , 678135 , 715698 , 717314 , 717924 , 720883 , 810848 , 820158 );
Copy