3
14.14 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
597015
507976
400494
443607
517287
557946
750701
459319
437960
490996
608336
473139
504450
525953
718798
436703
421878
451639
523840
587886
584857
503617
598172
623089
438018
502868
481580
525224
506677
601982
620411
462569
422151
549569
400491
470302
422155
439749
601991
446894
601363
557042
433323
518622
474776
567024
621239
601906
589450
584236
523171
415836
730798
457789
625983
625437
526951
549736
547612
597148
601851
625440
603933
593366
623405
621764
]
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 (597015 , 507976 , 400494 , 443607 , 517287 , 557946 , 750701 , 459319 , 437960 , 490996 , 608336 , 473139 , 504450 , 525953 , 718798 , 436703 , 421878 , 451639 , 523840 , 587886 , 584857 , 503617 , 598172 , 623089 , 438018 , 502868 , 481580 , 525224 , 506677 , 601982 , 620411 , 462569 , 422151 , 549569 , 400491 , 470302 , 422155 , 439749 , 601991 , 446894 , 601363 , 557042 , 433323 , 518622 , 474776 , 567024 , 621239 , 601906 , 589450 , 584236 , 523171 , 415836 , 730798 , 457789 , 625983 , 625437 , 526951 , 549736 , 547612 , 597148 , 601851 , 625440 , 603933 , 593366 , 623405 , 621764 );
Copy
4
2.23 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
400491
400494
415836
421878
422151
422155
433323
436703
437960
438018
439749
443607
446894
451639
457789
459319
462569
470302
473139
474776
481580
490996
502868
503617
504450
506677
507976
517287
518622
523171
523840
525224
525953
526951
547612
549569
549736
557042
557946
567024
584236
584857
587886
589450
593366
597015
597148
598172
601363
601851
601906
601982
601991
603933
608336
620411
621239
621764
623089
623405
625437
625440
625983
718798
730798
750701
]
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 (400491 , 400494 , 415836 , 421878 , 422151 , 422155 , 433323 , 436703 , 437960 , 438018 , 439749 , 443607 , 446894 , 451639 , 457789 , 459319 , 462569 , 470302 , 473139 , 474776 , 481580 , 490996 , 502868 , 503617 , 504450 , 506677 , 507976 , 517287 , 518622 , 523171 , 523840 , 525224 , 525953 , 526951 , 547612 , 549569 , 549736 , 557042 , 557946 , 567024 , 584236 , 584857 , 587886 , 589450 , 593366 , 597015 , 597148 , 598172 , 601363 , 601851 , 601906 , 601982 , 601991 , 603933 , 608336 , 620411 , 621239 , 621764 , 623089 , 623405 , 625437 , 625440 , 625983 , 718798 , 730798 , 750701 );
Copy
5
83.95 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
400491
400494
415836
421878
422151
422155
433323
436703
437960
438018
439749
443607
446894
451639
457789
459319
462569
470302
473139
474776
481580
490996
502868
503617
504450
506677
507976
517287
518622
523171
523840
525224
525953
526951
547612
549569
549736
557042
557946
567024
584236
584857
587886
589450
593366
597015
597148
598172
601363
601851
601906
601982
601991
603933
608336
620411
621239
621764
623089
623405
625437
625440
625983
718798
730798
750701
]
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 (400491 , 400494 , 415836 , 421878 , 422151 , 422155 , 433323 , 436703 , 437960 , 438018 , 439749 , 443607 , 446894 , 451639 , 457789 , 459319 , 462569 , 470302 , 473139 , 474776 , 481580 , 490996 , 502868 , 503617 , 504450 , 506677 , 507976 , 517287 , 518622 , 523171 , 523840 , 525224 , 525953 , 526951 , 547612 , 549569 , 549736 , 557042 , 557946 , 567024 , 584236 , 584857 , 587886 , 589450 , 593366 , 597015 , 597148 , 598172 , 601363 , 601851 , 601906 , 601982 , 601991 , 603933 , 608336 , 620411 , 621239 , 621764 , 623089 , 623405 , 625437 , 625440 , 625983 , 718798 , 730798 , 750701 );
Copy