3
11.52 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
619435
491453
619474
619451
213136
515706
572730
512178
559863
431716
515702
619491
82281
552913
623608
516430
575276
446481
552053
559918
503248
438588
550748
559925
477404
548012
559853
447908
713476
552896
559917
619438
550996
552882
623606
530345
619449
810051
598515
619459
552000
552021
622652
622653
595767
559872
419055
512172
67464
551969
565976
385480
554791
429544
554432
559907
167822
550741
495155
550760
559865
533388
558366
590967
623610
512203
604844
816132
557543
565984
503043
575716
519911
460969
]
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 (619435 , 491453 , 619474 , 619451 , 213136 , 515706 , 572730 , 512178 , 559863 , 431716 , 515702 , 619491 , 82281 , 552913 , 623608 , 516430 , 575276 , 446481 , 552053 , 559918 , 503248 , 438588 , 550748 , 559925 , 477404 , 548012 , 559853 , 447908 , 713476 , 552896 , 559917 , 619438 , 550996 , 552882 , 623606 , 530345 , 619449 , 810051 , 598515 , 619459 , 552000 , 552021 , 622652 , 622653 , 595767 , 559872 , 419055 , 512172 , 67464 , 551969 , 565976 , 385480 , 554791 , 429544 , 554432 , 559907 , 167822 , 550741 , 495155 , 550760 , 559865 , 533388 , 558366 , 590967 , 623610 , 512203 , 604844 , 816132 , 557543 , 565984 , 503043 , 575716 , 519911 , 460969 );
Copy
4
2.97 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
67464
82281
167822
213136
385480
419055
429544
431716
438588
446481
447908
460969
477404
491453
495155
503043
503248
512172
512178
512203
515702
515706
516430
519911
530345
533388
548012
550741
550748
550760
550996
551969
552000
552021
552053
552882
552896
552913
554432
554791
557543
558366
559853
559863
559865
559872
559907
559917
559918
559925
565976
565984
572730
575276
575716
590967
595767
598515
604844
619435
619438
619449
619451
619459
619474
619491
622652
622653
623606
623608
623610
713476
810051
816132
]
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 (67464 , 82281 , 167822 , 213136 , 385480 , 419055 , 429544 , 431716 , 438588 , 446481 , 447908 , 460969 , 477404 , 491453 , 495155 , 503043 , 503248 , 512172 , 512178 , 512203 , 515702 , 515706 , 516430 , 519911 , 530345 , 533388 , 548012 , 550741 , 550748 , 550760 , 550996 , 551969 , 552000 , 552021 , 552053 , 552882 , 552896 , 552913 , 554432 , 554791 , 557543 , 558366 , 559853 , 559863 , 559865 , 559872 , 559907 , 559917 , 559918 , 559925 , 565976 , 565984 , 572730 , 575276 , 575716 , 590967 , 595767 , 598515 , 604844 , 619435 , 619438 , 619449 , 619451 , 619459 , 619474 , 619491 , 622652 , 622653 , 623606 , 623608 , 623610 , 713476 , 810051 , 816132 );
Copy
5
83.12 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
67464
82281
167822
213136
385480
419055
429544
431716
438588
446481
447908
460969
477404
491453
495155
503043
503248
512172
512178
512203
515702
515706
516430
519911
530345
533388
548012
550741
550748
550760
550996
551969
552000
552021
552053
552882
552896
552913
554432
554791
557543
558366
559853
559863
559865
559872
559907
559917
559918
559925
565976
565984
572730
575276
575716
590967
595767
598515
604844
619435
619438
619449
619451
619459
619474
619491
622652
622653
623606
623608
623610
713476
810051
816132
]
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 (67464 , 82281 , 167822 , 213136 , 385480 , 419055 , 429544 , 431716 , 438588 , 446481 , 447908 , 460969 , 477404 , 491453 , 495155 , 503043 , 503248 , 512172 , 512178 , 512203 , 515702 , 515706 , 516430 , 519911 , 530345 , 533388 , 548012 , 550741 , 550748 , 550760 , 550996 , 551969 , 552000 , 552021 , 552053 , 552882 , 552896 , 552913 , 554432 , 554791 , 557543 , 558366 , 559853 , 559863 , 559865 , 559872 , 559907 , 559917 , 559918 , 559925 , 565976 , 565984 , 572730 , 575276 , 575716 , 590967 , 595767 , 598515 , 604844 , 619435 , 619438 , 619449 , 619451 , 619459 , 619474 , 619491 , 622652 , 622653 , 623606 , 623608 , 623610 , 713476 , 810051 , 816132 );
Copy