3
9.18 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
736228
406596
825342
660750
814502
762792
736695
740274
740726
814529
810378
734770
740283
788550
740675
762761
738181
738147
731324
816624
794343
736741
628602
531588
740707
731984
788650
750494
712393
736204
795469
577039
500955
720126
734800
716986
591750
801724
583541
521763
592364
485140
738636
522010
623382
582297
423209
800613
736502
705258
725230
738127
814399
493825
582371
574979
650659
621548
771290
433040
472299
500958
710647
619571
592372
596925
526601
601101
]
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 (736228 , 406596 , 825342 , 660750 , 814502 , 762792 , 736695 , 740274 , 740726 , 814529 , 810378 , 734770 , 740283 , 788550 , 740675 , 762761 , 738181 , 738147 , 731324 , 816624 , 794343 , 736741 , 628602 , 531588 , 740707 , 731984 , 788650 , 750494 , 712393 , 736204 , 795469 , 577039 , 500955 , 720126 , 734800 , 716986 , 591750 , 801724 , 583541 , 521763 , 592364 , 485140 , 738636 , 522010 , 623382 , 582297 , 423209 , 800613 , 736502 , 705258 , 725230 , 738127 , 814399 , 493825 , 582371 , 574979 , 650659 , 621548 , 771290 , 433040 , 472299 , 500958 , 710647 , 619571 , 592372 , 596925 , 526601 , 601101 );
Copy
4
2.62 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
406596
423209
433040
472299
485140
493825
500955
500958
521763
522010
526601
531588
574979
577039
582297
582371
583541
591750
592364
592372
596925
601101
619571
621548
623382
628602
650659
660750
705258
710647
712393
716986
720126
725230
731324
731984
734770
734800
736204
736228
736502
736695
736741
738127
738147
738181
738636
740274
740283
740675
740707
740726
750494
762761
762792
771290
788550
788650
794343
795469
800613
801724
810378
814399
814502
814529
816624
825342
]
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 (406596 , 423209 , 433040 , 472299 , 485140 , 493825 , 500955 , 500958 , 521763 , 522010 , 526601 , 531588 , 574979 , 577039 , 582297 , 582371 , 583541 , 591750 , 592364 , 592372 , 596925 , 601101 , 619571 , 621548 , 623382 , 628602 , 650659 , 660750 , 705258 , 710647 , 712393 , 716986 , 720126 , 725230 , 731324 , 731984 , 734770 , 734800 , 736204 , 736228 , 736502 , 736695 , 736741 , 738127 , 738147 , 738181 , 738636 , 740274 , 740283 , 740675 , 740707 , 740726 , 750494 , 762761 , 762792 , 771290 , 788550 , 788650 , 794343 , 795469 , 800613 , 801724 , 810378 , 814399 , 814502 , 814529 , 816624 , 825342 );
Copy
5
84.69 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
406596
423209
433040
472299
485140
493825
500955
500958
521763
522010
526601
531588
574979
577039
582297
582371
583541
591750
592364
592372
596925
601101
619571
621548
623382
628602
650659
660750
705258
710647
712393
716986
720126
725230
731324
731984
734770
734800
736204
736228
736502
736695
736741
738127
738147
738181
738636
740274
740283
740675
740707
740726
750494
762761
762792
771290
788550
788650
794343
795469
800613
801724
810378
814399
814502
814529
816624
825342
]
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 (406596 , 423209 , 433040 , 472299 , 485140 , 493825 , 500955 , 500958 , 521763 , 522010 , 526601 , 531588 , 574979 , 577039 , 582297 , 582371 , 583541 , 591750 , 592364 , 592372 , 596925 , 601101 , 619571 , 621548 , 623382 , 628602 , 650659 , 660750 , 705258 , 710647 , 712393 , 716986 , 720126 , 725230 , 731324 , 731984 , 734770 , 734800 , 736204 , 736228 , 736502 , 736695 , 736741 , 738127 , 738147 , 738181 , 738636 , 740274 , 740283 , 740675 , 740707 , 740726 , 750494 , 762761 , 762792 , 771290 , 788550 , 788650 , 794343 , 795469 , 800613 , 801724 , 810378 , 814399 , 814502 , 814529 , 816624 , 825342 );
Copy