3
12.05 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
575121
573777
574605
446158
514387
489611
489614
525962
491715
548650
552677
558846
575204
508826
491522
491511
576105
576072
548709
548793
585190
489355
552635
575117
512306
575499
575804
543833
575764
574481
491539
502709
575512
552637
574582
523999
430250
552660
508062
507965
508846
560587
477014
492380
575505
594554
574864
445197
575109
552652
570046
558840
552666
500135
574869
504793
512295
574507
552634
406121
589825
574782
574546
575783
518270
568741
575144
548708
523995
574527
]
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 (575121 , 573777 , 574605 , 446158 , 514387 , 489611 , 489614 , 525962 , 491715 , 548650 , 552677 , 558846 , 575204 , 508826 , 491522 , 491511 , 576105 , 576072 , 548709 , 548793 , 585190 , 489355 , 552635 , 575117 , 512306 , 575499 , 575804 , 543833 , 575764 , 574481 , 491539 , 502709 , 575512 , 552637 , 574582 , 523999 , 430250 , 552660 , 508062 , 507965 , 508846 , 560587 , 477014 , 492380 , 575505 , 594554 , 574864 , 445197 , 575109 , 552652 , 570046 , 558840 , 552666 , 500135 , 574869 , 504793 , 512295 , 574507 , 552634 , 406121 , 589825 , 574782 , 574546 , 575783 , 518270 , 568741 , 575144 , 548708 , 523995 , 574527 );
Copy
4
2.89 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
406121
430250
445197
446158
477014
489355
489611
489614
491511
491522
491539
491715
492380
500135
502709
504793
507965
508062
508826
508846
512295
512306
514387
518270
523995
523999
525962
543833
548650
548708
548709
548793
552634
552635
552637
552652
552660
552666
552677
558840
558846
560587
568741
570046
573777
574481
574507
574527
574546
574582
574605
574782
574864
574869
575109
575117
575121
575144
575204
575499
575505
575512
575764
575783
575804
576072
576105
585190
589825
594554
]
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 (406121 , 430250 , 445197 , 446158 , 477014 , 489355 , 489611 , 489614 , 491511 , 491522 , 491539 , 491715 , 492380 , 500135 , 502709 , 504793 , 507965 , 508062 , 508826 , 508846 , 512295 , 512306 , 514387 , 518270 , 523995 , 523999 , 525962 , 543833 , 548650 , 548708 , 548709 , 548793 , 552634 , 552635 , 552637 , 552652 , 552660 , 552666 , 552677 , 558840 , 558846 , 560587 , 568741 , 570046 , 573777 , 574481 , 574507 , 574527 , 574546 , 574582 , 574605 , 574782 , 574864 , 574869 , 575109 , 575117 , 575121 , 575144 , 575204 , 575499 , 575505 , 575512 , 575764 , 575783 , 575804 , 576072 , 576105 , 585190 , 589825 , 594554 );
Copy
5
104.24 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
406121
430250
445197
446158
477014
489355
489611
489614
491511
491522
491539
491715
492380
500135
502709
504793
507965
508062
508826
508846
512295
512306
514387
518270
523995
523999
525962
543833
548650
548708
548709
548793
552634
552635
552637
552652
552660
552666
552677
558840
558846
560587
568741
570046
573777
574481
574507
574527
574546
574582
574605
574782
574864
574869
575109
575117
575121
575144
575204
575499
575505
575512
575764
575783
575804
576072
576105
585190
589825
594554
]
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 (406121 , 430250 , 445197 , 446158 , 477014 , 489355 , 489611 , 489614 , 491511 , 491522 , 491539 , 491715 , 492380 , 500135 , 502709 , 504793 , 507965 , 508062 , 508826 , 508846 , 512295 , 512306 , 514387 , 518270 , 523995 , 523999 , 525962 , 543833 , 548650 , 548708 , 548709 , 548793 , 552634 , 552635 , 552637 , 552652 , 552660 , 552666 , 552677 , 558840 , 558846 , 560587 , 568741 , 570046 , 573777 , 574481 , 574507 , 574527 , 574546 , 574582 , 574605 , 574782 , 574864 , 574869 , 575109 , 575117 , 575121 , 575144 , 575204 , 575499 , 575505 , 575512 , 575764 , 575783 , 575804 , 576072 , 576105 , 585190 , 589825 , 594554 );
Copy