4
11.69 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
597963
751565
607537
518597
518599
518468
521438
746594
647340
462372
474248
576294
475014
590057
399959
479548
500777
510763
533746
507338
575740
561326
599460
468851
477245
476289
518668
504002
576088
580022
561682
577959
439359
520850
499009
474643
492111
470580
502800
554930
579344
480905
466386
439029
484359
592985
731063
447751
480972
454135
480743
490447
450901
527917
527906
718782
420182
420646
491665
497300
524162
598170
570535
541841
439521
446172
463087
439623
485709
623684
]
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 (597963 , 751565 , 607537 , 518597 , 518599 , 518468 , 521438 , 746594 , 647340 , 462372 , 474248 , 576294 , 475014 , 590057 , 399959 , 479548 , 500777 , 510763 , 533746 , 507338 , 575740 , 561326 , 599460 , 468851 , 477245 , 476289 , 518668 , 504002 , 576088 , 580022 , 561682 , 577959 , 439359 , 520850 , 499009 , 474643 , 492111 , 470580 , 502800 , 554930 , 579344 , 480905 , 466386 , 439029 , 484359 , 592985 , 731063 , 447751 , 480972 , 454135 , 480743 , 490447 , 450901 , 527917 , 527906 , 718782 , 420182 , 420646 , 491665 , 497300 , 524162 , 598170 , 570535 , 541841 , 439521 , 446172 , 463087 , 439623 , 485709 , 623684 );
Copy
5
210.60 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
399959
420182
420646
439029
439359
439521
439623
446172
447751
450901
454135
462372
463087
466386
468851
470580
474248
474643
475014
476289
477245
479548
480743
480905
480972
484359
485709
490447
491665
492111
497300
499009
500777
502800
504002
507338
510763
518468
518597
518599
518668
520850
521438
524162
527906
527917
533746
541841
554930
561326
561682
570535
575740
576088
576294
577959
579344
580022
590057
592985
597963
598170
599460
607537
623684
647340
718782
731063
746594
751565
]
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 (399959 , 420182 , 420646 , 439029 , 439359 , 439521 , 439623 , 446172 , 447751 , 450901 , 454135 , 462372 , 463087 , 466386 , 468851 , 470580 , 474248 , 474643 , 475014 , 476289 , 477245 , 479548 , 480743 , 480905 , 480972 , 484359 , 485709 , 490447 , 491665 , 492111 , 497300 , 499009 , 500777 , 502800 , 504002 , 507338 , 510763 , 518468 , 518597 , 518599 , 518668 , 520850 , 521438 , 524162 , 527906 , 527917 , 533746 , 541841 , 554930 , 561326 , 561682 , 570535 , 575740 , 576088 , 576294 , 577959 , 579344 , 580022 , 590057 , 592985 , 597963 , 598170 , 599460 , 607537 , 623684 , 647340 , 718782 , 731063 , 746594 , 751565 );
Copy
6
77.49 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
399959
420182
420646
439029
439359
439521
439623
446172
447751
450901
454135
462372
463087
466386
468851
470580
474248
474643
475014
476289
477245
479548
480743
480905
480972
484359
485709
490447
491665
492111
497300
499009
500777
502800
504002
507338
510763
518468
518597
518599
518668
520850
521438
524162
527906
527917
533746
541841
554930
561326
561682
570535
575740
576088
576294
577959
579344
580022
590057
592985
597963
598170
599460
607537
623684
647340
718782
731063
746594
751565
]
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 (399959 , 420182 , 420646 , 439029 , 439359 , 439521 , 439623 , 446172 , 447751 , 450901 , 454135 , 462372 , 463087 , 466386 , 468851 , 470580 , 474248 , 474643 , 475014 , 476289 , 477245 , 479548 , 480743 , 480905 , 480972 , 484359 , 485709 , 490447 , 491665 , 492111 , 497300 , 499009 , 500777 , 502800 , 504002 , 507338 , 510763 , 518468 , 518597 , 518599 , 518668 , 520850 , 521438 , 524162 , 527906 , 527917 , 533746 , 541841 , 554930 , 561326 , 561682 , 570535 , 575740 , 576088 , 576294 , 577959 , 579344 , 580022 , 590057 , 592985 , 597963 , 598170 , 599460 , 607537 , 623684 , 647340 , 718782 , 731063 , 746594 , 751565 );
Copy