3
7.53 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
828280
824849
755246
752875
725665
749825
726861
721091
666659
786056
791235
653009
590029
558570
762369
589102
459223
564557
522633
563772
658216
756875
785484
811508
547903
446081
787774
729239
516440
482922
432745
549662
443161
434885
449546
558582
575542
588517
641445
463200
492112
507456
445571
522208
538484
805041
482906
568163
656670
517458
518589
484334
564377
564555
455343
467569
647609
542213
624142
541074
507817
512936
511159
488249
488772
504250
668528
546015
507276
603047
]
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 (828280 , 824849 , 755246 , 752875 , 725665 , 749825 , 726861 , 721091 , 666659 , 786056 , 791235 , 653009 , 590029 , 558570 , 762369 , 589102 , 459223 , 564557 , 522633 , 563772 , 658216 , 756875 , 785484 , 811508 , 547903 , 446081 , 787774 , 729239 , 516440 , 482922 , 432745 , 549662 , 443161 , 434885 , 449546 , 558582 , 575542 , 588517 , 641445 , 463200 , 492112 , 507456 , 445571 , 522208 , 538484 , 805041 , 482906 , 568163 , 656670 , 517458 , 518589 , 484334 , 564377 , 564555 , 455343 , 467569 , 647609 , 542213 , 624142 , 541074 , 507817 , 512936 , 511159 , 488249 , 488772 , 504250 , 668528 , 546015 , 507276 , 603047 );
Copy
4
418.15 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
432745
434885
443161
445571
446081
449546
455343
459223
463200
467569
482906
482922
484334
488249
488772
492112
504250
507276
507456
507817
511159
512936
516440
517458
518589
522208
522633
538484
541074
542213
546015
547903
549662
558570
558582
563772
564377
564555
564557
568163
575542
588517
589102
590029
603047
624142
641445
647609
653009
656670
658216
666659
668528
721091
725665
726861
729239
749825
752875
755246
756875
762369
785484
786056
787774
791235
805041
811508
824849
828280
]
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 (432745 , 434885 , 443161 , 445571 , 446081 , 449546 , 455343 , 459223 , 463200 , 467569 , 482906 , 482922 , 484334 , 488249 , 488772 , 492112 , 504250 , 507276 , 507456 , 507817 , 511159 , 512936 , 516440 , 517458 , 518589 , 522208 , 522633 , 538484 , 541074 , 542213 , 546015 , 547903 , 549662 , 558570 , 558582 , 563772 , 564377 , 564555 , 564557 , 568163 , 575542 , 588517 , 589102 , 590029 , 603047 , 624142 , 641445 , 647609 , 653009 , 656670 , 658216 , 666659 , 668528 , 721091 , 725665 , 726861 , 729239 , 749825 , 752875 , 755246 , 756875 , 762369 , 785484 , 786056 , 787774 , 791235 , 805041 , 811508 , 824849 , 828280 );
Copy
5
99.04 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
432745
434885
443161
445571
446081
449546
455343
459223
463200
467569
482906
482922
484334
488249
488772
492112
504250
507276
507456
507817
511159
512936
516440
517458
518589
522208
522633
538484
541074
542213
546015
547903
549662
558570
558582
563772
564377
564555
564557
568163
575542
588517
589102
590029
603047
624142
641445
647609
653009
656670
658216
666659
668528
721091
725665
726861
729239
749825
752875
755246
756875
762369
785484
786056
787774
791235
805041
811508
824849
828280
]
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 (432745 , 434885 , 443161 , 445571 , 446081 , 449546 , 455343 , 459223 , 463200 , 467569 , 482906 , 482922 , 484334 , 488249 , 488772 , 492112 , 504250 , 507276 , 507456 , 507817 , 511159 , 512936 , 516440 , 517458 , 518589 , 522208 , 522633 , 538484 , 541074 , 542213 , 546015 , 547903 , 549662 , 558570 , 558582 , 563772 , 564377 , 564555 , 564557 , 568163 , 575542 , 588517 , 589102 , 590029 , 603047 , 624142 , 641445 , 647609 , 653009 , 656670 , 658216 , 666659 , 668528 , 721091 , 725665 , 726861 , 729239 , 749825 , 752875 , 755246 , 756875 , 762369 , 785484 , 786056 , 787774 , 791235 , 805041 , 811508 , 824849 , 828280 );
Copy