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