3
10.10 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
651012
610131
761410
721561
776455
721754
593072
812540
726237
770122
635346
554452
800479
725227
733588
412000
746628
735027
725211
409272
774196
716324
588402
780696
730367
451719
539423
787364
420144
772327
460283
619629
797142
429036
484619
470026
510907
533998
570174
388785
464296
554495
613495
458724
470707
492512
510363
470729
558001
455034
486530
519341
452170
542786
460444
477982
447920
552307
407414
518879
442720
445056
521738
581616
444606
]
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 (651012 , 610131 , 761410 , 721561 , 776455 , 721754 , 593072 , 812540 , 726237 , 770122 , 635346 , 554452 , 800479 , 725227 , 733588 , 412000 , 746628 , 735027 , 725211 , 409272 , 774196 , 716324 , 588402 , 780696 , 730367 , 451719 , 539423 , 787364 , 420144 , 772327 , 460283 , 619629 , 797142 , 429036 , 484619 , 470026 , 510907 , 533998 , 570174 , 388785 , 464296 , 554495 , 613495 , 458724 , 470707 , 492512 , 510363 , 470729 , 558001 , 455034 , 486530 , 519341 , 452170 , 542786 , 460444 , 477982 , 447920 , 552307 , 407414 , 518879 , 442720 , 445056 , 521738 , 581616 , 444606 );
Copy
4
3.24 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
388785
407414
409272
412000
420144
429036
442720
444606
445056
447920
451719
452170
455034
458724
460283
460444
464296
470026
470707
470729
477982
484619
486530
492512
510363
510907
518879
519341
521738
533998
539423
542786
552307
554452
554495
558001
570174
581616
588402
593072
610131
613495
619629
635346
651012
716324
721561
721754
725211
725227
726237
730367
733588
735027
746628
761410
770122
772327
774196
776455
780696
787364
797142
800479
812540
]
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 (388785 , 407414 , 409272 , 412000 , 420144 , 429036 , 442720 , 444606 , 445056 , 447920 , 451719 , 452170 , 455034 , 458724 , 460283 , 460444 , 464296 , 470026 , 470707 , 470729 , 477982 , 484619 , 486530 , 492512 , 510363 , 510907 , 518879 , 519341 , 521738 , 533998 , 539423 , 542786 , 552307 , 554452 , 554495 , 558001 , 570174 , 581616 , 588402 , 593072 , 610131 , 613495 , 619629 , 635346 , 651012 , 716324 , 721561 , 721754 , 725211 , 725227 , 726237 , 730367 , 733588 , 735027 , 746628 , 761410 , 770122 , 772327 , 774196 , 776455 , 780696 , 787364 , 797142 , 800479 , 812540 );
Copy
5
107.88 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
388785
407414
409272
412000
420144
429036
442720
444606
445056
447920
451719
452170
455034
458724
460283
460444
464296
470026
470707
470729
477982
484619
486530
492512
510363
510907
518879
519341
521738
533998
539423
542786
552307
554452
554495
558001
570174
581616
588402
593072
610131
613495
619629
635346
651012
716324
721561
721754
725211
725227
726237
730367
733588
735027
746628
761410
770122
772327
774196
776455
780696
787364
797142
800479
812540
]
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 (388785 , 407414 , 409272 , 412000 , 420144 , 429036 , 442720 , 444606 , 445056 , 447920 , 451719 , 452170 , 455034 , 458724 , 460283 , 460444 , 464296 , 470026 , 470707 , 470729 , 477982 , 484619 , 486530 , 492512 , 510363 , 510907 , 518879 , 519341 , 521738 , 533998 , 539423 , 542786 , 552307 , 554452 , 554495 , 558001 , 570174 , 581616 , 588402 , 593072 , 610131 , 613495 , 619629 , 635346 , 651012 , 716324 , 721561 , 721754 , 725211 , 725227 , 726237 , 730367 , 733588 , 735027 , 746628 , 761410 , 770122 , 772327 , 774196 , 776455 , 780696 , 787364 , 797142 , 800479 , 812540 );
Copy