3
9.96 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
543566
769448
533779
715068
601527
731663
464195
490267
409948
740617
555003
663254
595421
536877
629510
601930
558304
457847
705630
569929
558437
805487
467223
550187
765853
434885
472393
489166
825789
478930
766546
808075
460806
562796
490684
523291
536290
478057
490265
806218
644971
516924
578898
579633
503838
535595
531172
533697
535620
637741
601707
572022
484673
489217
533477
532954
543731
590411
552266
575441
561995
489373
510109
542961
555789
474643
512508
]
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 (543566 , 769448 , 533779 , 715068 , 601527 , 731663 , 464195 , 490267 , 409948 , 740617 , 555003 , 663254 , 595421 , 536877 , 629510 , 601930 , 558304 , 457847 , 705630 , 569929 , 558437 , 805487 , 467223 , 550187 , 765853 , 434885 , 472393 , 489166 , 825789 , 478930 , 766546 , 808075 , 460806 , 562796 , 490684 , 523291 , 536290 , 478057 , 490265 , 806218 , 644971 , 516924 , 578898 , 579633 , 503838 , 535595 , 531172 , 533697 , 535620 , 637741 , 601707 , 572022 , 484673 , 489217 , 533477 , 532954 , 543731 , 590411 , 552266 , 575441 , 561995 , 489373 , 510109 , 542961 , 555789 , 474643 , 512508 );
Copy
4
2.56 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
409948
434885
457847
460806
464195
467223
472393
474643
478057
478930
484673
489166
489217
489373
490265
490267
490684
503838
510109
512508
516924
523291
531172
532954
533477
533697
533779
535595
535620
536290
536877
542961
543566
543731
550187
552266
555003
555789
558304
558437
561995
562796
569929
572022
575441
578898
579633
590411
595421
601527
601707
601930
629510
637741
644971
663254
705630
715068
731663
740617
765853
766546
769448
805487
806218
808075
825789
]
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 (409948 , 434885 , 457847 , 460806 , 464195 , 467223 , 472393 , 474643 , 478057 , 478930 , 484673 , 489166 , 489217 , 489373 , 490265 , 490267 , 490684 , 503838 , 510109 , 512508 , 516924 , 523291 , 531172 , 532954 , 533477 , 533697 , 533779 , 535595 , 535620 , 536290 , 536877 , 542961 , 543566 , 543731 , 550187 , 552266 , 555003 , 555789 , 558304 , 558437 , 561995 , 562796 , 569929 , 572022 , 575441 , 578898 , 579633 , 590411 , 595421 , 601527 , 601707 , 601930 , 629510 , 637741 , 644971 , 663254 , 705630 , 715068 , 731663 , 740617 , 765853 , 766546 , 769448 , 805487 , 806218 , 808075 , 825789 );
Copy
5
97.36 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
409948
434885
457847
460806
464195
467223
472393
474643
478057
478930
484673
489166
489217
489373
490265
490267
490684
503838
510109
512508
516924
523291
531172
532954
533477
533697
533779
535595
535620
536290
536877
542961
543566
543731
550187
552266
555003
555789
558304
558437
561995
562796
569929
572022
575441
578898
579633
590411
595421
601527
601707
601930
629510
637741
644971
663254
705630
715068
731663
740617
765853
766546
769448
805487
806218
808075
825789
]
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 (409948 , 434885 , 457847 , 460806 , 464195 , 467223 , 472393 , 474643 , 478057 , 478930 , 484673 , 489166 , 489217 , 489373 , 490265 , 490267 , 490684 , 503838 , 510109 , 512508 , 516924 , 523291 , 531172 , 532954 , 533477 , 533697 , 533779 , 535595 , 535620 , 536290 , 536877 , 542961 , 543566 , 543731 , 550187 , 552266 , 555003 , 555789 , 558304 , 558437 , 561995 , 562796 , 569929 , 572022 , 575441 , 578898 , 579633 , 590411 , 595421 , 601527 , 601707 , 601930 , 629510 , 637741 , 644971 , 663254 , 705630 , 715068 , 731663 , 740617 , 765853 , 766546 , 769448 , 805487 , 806218 , 808075 , 825789 );
Copy