3
10.90 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
607155
595828
515772
793687
462208
663411
807186
653154
558979
796499
653139
806422
819543
724304
464374
801147
804438
358437
595772
714844
714851
605525
663414
598278
591095
787670
676375
589194
527608
518537
562064
760576
518017
714809
603163
806381
543404
543413
543416
595817
589152
603175
460418
470663
622218
520235
645201
595808
543418
454456
495712
508584
503858
543356
607100
589224
472503
495744
495703
522902
525263
504133
552306
543422
568061
569448
]
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 (607155 , 595828 , 515772 , 793687 , 462208 , 663411 , 807186 , 653154 , 558979 , 796499 , 653139 , 806422 , 819543 , 724304 , 464374 , 801147 , 804438 , 358437 , 595772 , 714844 , 714851 , 605525 , 663414 , 598278 , 591095 , 787670 , 676375 , 589194 , 527608 , 518537 , 562064 , 760576 , 518017 , 714809 , 603163 , 806381 , 543404 , 543413 , 543416 , 595817 , 589152 , 603175 , 460418 , 470663 , 622218 , 520235 , 645201 , 595808 , 543418 , 454456 , 495712 , 508584 , 503858 , 543356 , 607100 , 589224 , 472503 , 495744 , 495703 , 522902 , 525263 , 504133 , 552306 , 543422 , 568061 , 569448 );
Copy
4
2.88 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
358437
454456
460418
462208
464374
470663
472503
495703
495712
495744
503858
504133
508584
515772
518017
518537
520235
522902
525263
527608
543356
543404
543413
543416
543418
543422
552306
558979
562064
568061
569448
589152
589194
589224
591095
595772
595808
595817
595828
598278
603163
603175
605525
607100
607155
622218
645201
653139
653154
663411
663414
676375
714809
714844
714851
724304
760576
787670
793687
796499
801147
804438
806381
806422
807186
819543
]
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 (358437 , 454456 , 460418 , 462208 , 464374 , 470663 , 472503 , 495703 , 495712 , 495744 , 503858 , 504133 , 508584 , 515772 , 518017 , 518537 , 520235 , 522902 , 525263 , 527608 , 543356 , 543404 , 543413 , 543416 , 543418 , 543422 , 552306 , 558979 , 562064 , 568061 , 569448 , 589152 , 589194 , 589224 , 591095 , 595772 , 595808 , 595817 , 595828 , 598278 , 603163 , 603175 , 605525 , 607100 , 607155 , 622218 , 645201 , 653139 , 653154 , 663411 , 663414 , 676375 , 714809 , 714844 , 714851 , 724304 , 760576 , 787670 , 793687 , 796499 , 801147 , 804438 , 806381 , 806422 , 807186 , 819543 );
Copy
5
121.71 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
358437
454456
460418
462208
464374
470663
472503
495703
495712
495744
503858
504133
508584
515772
518017
518537
520235
522902
525263
527608
543356
543404
543413
543416
543418
543422
552306
558979
562064
568061
569448
589152
589194
589224
591095
595772
595808
595817
595828
598278
603163
603175
605525
607100
607155
622218
645201
653139
653154
663411
663414
676375
714809
714844
714851
724304
760576
787670
793687
796499
801147
804438
806381
806422
807186
819543
]
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 (358437 , 454456 , 460418 , 462208 , 464374 , 470663 , 472503 , 495703 , 495712 , 495744 , 503858 , 504133 , 508584 , 515772 , 518017 , 518537 , 520235 , 522902 , 525263 , 527608 , 543356 , 543404 , 543413 , 543416 , 543418 , 543422 , 552306 , 558979 , 562064 , 568061 , 569448 , 589152 , 589194 , 589224 , 591095 , 595772 , 595808 , 595817 , 595828 , 598278 , 603163 , 603175 , 605525 , 607100 , 607155 , 622218 , 645201 , 653139 , 653154 , 663411 , 663414 , 676375 , 714809 , 714844 , 714851 , 724304 , 760576 , 787670 , 793687 , 796499 , 801147 , 804438 , 806381 , 806422 , 807186 , 819543 );
Copy