3
9.08 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
701638
615307
623196
586623
775045
741213
826232
827932
543146
626021
795173
598080
645048
631206
745051
742433
403067
670489
665240
720160
654278
781301
520545
775982
460078
672999
720830
390217
483532
510592
396023
815313
531145
583425
578971
615892
797949
811738
720883
809468
681570
809533
507767
502889
507646
420192
507312
514579
545586
513680
408214
567829
521832
534003
541832
583507
489280
679567
805789
462940
533648
668141
661335
697229
775056
770786
818439
719391
382355
504268
467553
613169
]
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 (701638 , 615307 , 623196 , 586623 , 775045 , 741213 , 826232 , 827932 , 543146 , 626021 , 795173 , 598080 , 645048 , 631206 , 745051 , 742433 , 403067 , 670489 , 665240 , 720160 , 654278 , 781301 , 520545 , 775982 , 460078 , 672999 , 720830 , 390217 , 483532 , 510592 , 396023 , 815313 , 531145 , 583425 , 578971 , 615892 , 797949 , 811738 , 720883 , 809468 , 681570 , 809533 , 507767 , 502889 , 507646 , 420192 , 507312 , 514579 , 545586 , 513680 , 408214 , 567829 , 521832 , 534003 , 541832 , 583507 , 489280 , 679567 , 805789 , 462940 , 533648 , 668141 , 661335 , 697229 , 775056 , 770786 , 818439 , 719391 , 382355 , 504268 , 467553 , 613169 );
Copy
4
2.46 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
382355
390217
396023
403067
408214
420192
460078
462940
467553
483532
489280
502889
504268
507312
507646
507767
510592
513680
514579
520545
521832
531145
533648
534003
541832
543146
545586
567829
578971
583425
583507
586623
598080
613169
615307
615892
623196
626021
631206
645048
654278
661335
665240
668141
670489
672999
679567
681570
697229
701638
719391
720160
720830
720883
741213
742433
745051
770786
775045
775056
775982
781301
795173
797949
805789
809468
809533
811738
815313
818439
826232
827932
]
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 (382355 , 390217 , 396023 , 403067 , 408214 , 420192 , 460078 , 462940 , 467553 , 483532 , 489280 , 502889 , 504268 , 507312 , 507646 , 507767 , 510592 , 513680 , 514579 , 520545 , 521832 , 531145 , 533648 , 534003 , 541832 , 543146 , 545586 , 567829 , 578971 , 583425 , 583507 , 586623 , 598080 , 613169 , 615307 , 615892 , 623196 , 626021 , 631206 , 645048 , 654278 , 661335 , 665240 , 668141 , 670489 , 672999 , 679567 , 681570 , 697229 , 701638 , 719391 , 720160 , 720830 , 720883 , 741213 , 742433 , 745051 , 770786 , 775045 , 775056 , 775982 , 781301 , 795173 , 797949 , 805789 , 809468 , 809533 , 811738 , 815313 , 818439 , 826232 , 827932 );
Copy
5
112.16 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
382355
390217
396023
403067
408214
420192
460078
462940
467553
483532
489280
502889
504268
507312
507646
507767
510592
513680
514579
520545
521832
531145
533648
534003
541832
543146
545586
567829
578971
583425
583507
586623
598080
613169
615307
615892
623196
626021
631206
645048
654278
661335
665240
668141
670489
672999
679567
681570
697229
701638
719391
720160
720830
720883
741213
742433
745051
770786
775045
775056
775982
781301
795173
797949
805789
809468
809533
811738
815313
818439
826232
827932
]
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 (382355 , 390217 , 396023 , 403067 , 408214 , 420192 , 460078 , 462940 , 467553 , 483532 , 489280 , 502889 , 504268 , 507312 , 507646 , 507767 , 510592 , 513680 , 514579 , 520545 , 521832 , 531145 , 533648 , 534003 , 541832 , 543146 , 545586 , 567829 , 578971 , 583425 , 583507 , 586623 , 598080 , 613169 , 615307 , 615892 , 623196 , 626021 , 631206 , 645048 , 654278 , 661335 , 665240 , 668141 , 670489 , 672999 , 679567 , 681570 , 697229 , 701638 , 719391 , 720160 , 720830 , 720883 , 741213 , 742433 , 745051 , 770786 , 775045 , 775056 , 775982 , 781301 , 795173 , 797949 , 805789 , 809468 , 809533 , 811738 , 815313 , 818439 , 826232 , 827932 );
Copy