3
21.85 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
749743
587689
748441
725166
547059
696986
789352
584241
605587
437176
727799
789331
827928
664151
605696
478260
472172
733243
776584
540523
661300
477209
627846
704685
635840
605704
460829
633992
444958
468009
584188
578101
790481
591881
587997
559906
728720
632502
476414
628181
603218
654739
548751
654479
791233
720163
657021
656686
654506
656009
603546
719862
658269
720161
388254
656477
758381
637247
552588
655694
504158
493260
654753
426547
558235
590620
439566
486583
504759
515396
]
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 (749743 , 587689 , 748441 , 725166 , 547059 , 696986 , 789352 , 584241 , 605587 , 437176 , 727799 , 789331 , 827928 , 664151 , 605696 , 478260 , 472172 , 733243 , 776584 , 540523 , 661300 , 477209 , 627846 , 704685 , 635840 , 605704 , 460829 , 633992 , 444958 , 468009 , 584188 , 578101 , 790481 , 591881 , 587997 , 559906 , 728720 , 632502 , 476414 , 628181 , 603218 , 654739 , 548751 , 654479 , 791233 , 720163 , 657021 , 656686 , 654506 , 656009 , 603546 , 719862 , 658269 , 720161 , 388254 , 656477 , 758381 , 637247 , 552588 , 655694 , 504158 , 493260 , 654753 , 426547 , 558235 , 590620 , 439566 , 486583 , 504759 , 515396 );
Copy
4
2.61 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
388254
426547
437176
439566
444958
460829
468009
472172
476414
477209
478260
486583
493260
504158
504759
515396
540523
547059
548751
552588
558235
559906
578101
584188
584241
587689
587997
590620
591881
603218
603546
605587
605696
605704
627846
628181
632502
633992
635840
637247
654479
654506
654739
654753
655694
656009
656477
656686
657021
658269
661300
664151
696986
704685
719862
720161
720163
725166
727799
728720
733243
748441
749743
758381
776584
789331
789352
790481
791233
827928
]
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 (388254 , 426547 , 437176 , 439566 , 444958 , 460829 , 468009 , 472172 , 476414 , 477209 , 478260 , 486583 , 493260 , 504158 , 504759 , 515396 , 540523 , 547059 , 548751 , 552588 , 558235 , 559906 , 578101 , 584188 , 584241 , 587689 , 587997 , 590620 , 591881 , 603218 , 603546 , 605587 , 605696 , 605704 , 627846 , 628181 , 632502 , 633992 , 635840 , 637247 , 654479 , 654506 , 654739 , 654753 , 655694 , 656009 , 656477 , 656686 , 657021 , 658269 , 661300 , 664151 , 696986 , 704685 , 719862 , 720161 , 720163 , 725166 , 727799 , 728720 , 733243 , 748441 , 749743 , 758381 , 776584 , 789331 , 789352 , 790481 , 791233 , 827928 );
Copy
5
94.53 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
388254
426547
437176
439566
444958
460829
468009
472172
476414
477209
478260
486583
493260
504158
504759
515396
540523
547059
548751
552588
558235
559906
578101
584188
584241
587689
587997
590620
591881
603218
603546
605587
605696
605704
627846
628181
632502
633992
635840
637247
654479
654506
654739
654753
655694
656009
656477
656686
657021
658269
661300
664151
696986
704685
719862
720161
720163
725166
727799
728720
733243
748441
749743
758381
776584
789331
789352
790481
791233
827928
]
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 (388254 , 426547 , 437176 , 439566 , 444958 , 460829 , 468009 , 472172 , 476414 , 477209 , 478260 , 486583 , 493260 , 504158 , 504759 , 515396 , 540523 , 547059 , 548751 , 552588 , 558235 , 559906 , 578101 , 584188 , 584241 , 587689 , 587997 , 590620 , 591881 , 603218 , 603546 , 605587 , 605696 , 605704 , 627846 , 628181 , 632502 , 633992 , 635840 , 637247 , 654479 , 654506 , 654739 , 654753 , 655694 , 656009 , 656477 , 656686 , 657021 , 658269 , 661300 , 664151 , 696986 , 704685 , 719862 , 720161 , 720163 , 725166 , 727799 , 728720 , 733243 , 748441 , 749743 , 758381 , 776584 , 789331 , 789352 , 790481 , 791233 , 827928 );
Copy