3
10.17 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
778810
764934
728116
760273
767960
530213
395780
551645
593557
594167
535572
743131
704525
530371
531160
702675
457077
640784
550194
695124
703833
531136
537114
531247
531155
782738
438495
702680
781546
795801
580398
636564
634585
791819
431542
767961
489257
720407
783093
489258
777536
730404
670234
780676
764319
736850
423384
796723
389612
438044
441942
526809
527467
449816
581754
542446
722706
725451
505795
505794
539662
805274
704222
525941
466376
486870
501714
440990
]
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 (778810 , 764934 , 728116 , 760273 , 767960 , 530213 , 395780 , 551645 , 593557 , 594167 , 535572 , 743131 , 704525 , 530371 , 531160 , 702675 , 457077 , 640784 , 550194 , 695124 , 703833 , 531136 , 537114 , 531247 , 531155 , 782738 , 438495 , 702680 , 781546 , 795801 , 580398 , 636564 , 634585 , 791819 , 431542 , 767961 , 489257 , 720407 , 783093 , 489258 , 777536 , 730404 , 670234 , 780676 , 764319 , 736850 , 423384 , 796723 , 389612 , 438044 , 441942 , 526809 , 527467 , 449816 , 581754 , 542446 , 722706 , 725451 , 505795 , 505794 , 539662 , 805274 , 704222 , 525941 , 466376 , 486870 , 501714 , 440990 );
Copy
4
2.05 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
389612
395780
423384
431542
438044
438495
440990
441942
449816
457077
466376
486870
489257
489258
501714
505795
525941
526809
527467
530213
530371
531136
531155
531160
531247
535572
537114
539662
542446
550194
551645
580398
581754
593557
594167
634585
636564
640784
670234
695124
702675
702680
703833
704222
704525
720407
722706
725451
728116
730404
736850
743131
760273
764319
764934
767960
767961
777536
778810
780676
781546
782738
783093
791819
795801
796723
805274
]
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 (389612 , 395780 , 423384 , 431542 , 438044 , 438495 , 440990 , 441942 , 449816 , 457077 , 466376 , 486870 , 489257 , 489258 , 501714 , 505795 , 525941 , 526809 , 527467 , 530213 , 530371 , 531136 , 531155 , 531160 , 531247 , 535572 , 537114 , 539662 , 542446 , 550194 , 551645 , 580398 , 581754 , 593557 , 594167 , 634585 , 636564 , 640784 , 670234 , 695124 , 702675 , 702680 , 703833 , 704222 , 704525 , 720407 , 722706 , 725451 , 728116 , 730404 , 736850 , 743131 , 760273 , 764319 , 764934 , 767960 , 767961 , 777536 , 778810 , 780676 , 781546 , 782738 , 783093 , 791819 , 795801 , 796723 , 805274 );
Copy
5
303.33 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
389612
395780
423384
431542
438044
438495
440990
441942
449816
457077
466376
486870
489257
489258
501714
505795
525941
526809
527467
530213
530371
531136
531155
531160
531247
535572
537114
539662
542446
550194
551645
580398
581754
593557
594167
634585
636564
640784
670234
695124
702675
702680
703833
704222
704525
720407
722706
725451
728116
730404
736850
743131
760273
764319
764934
767960
767961
777536
778810
780676
781546
782738
783093
791819
795801
796723
805274
]
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 (389612 , 395780 , 423384 , 431542 , 438044 , 438495 , 440990 , 441942 , 449816 , 457077 , 466376 , 486870 , 489257 , 489258 , 501714 , 505795 , 525941 , 526809 , 527467 , 530213 , 530371 , 531136 , 531155 , 531160 , 531247 , 535572 , 537114 , 539662 , 542446 , 550194 , 551645 , 580398 , 581754 , 593557 , 594167 , 634585 , 636564 , 640784 , 670234 , 695124 , 702675 , 702680 , 703833 , 704222 , 704525 , 720407 , 722706 , 725451 , 728116 , 730404 , 736850 , 743131 , 760273 , 764319 , 764934 , 767960 , 767961 , 777536 , 778810 , 780676 , 781546 , 782738 , 783093 , 791819 , 795801 , 796723 , 805274 );
Copy