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