3
10.81 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
593056
732616
732912
776530
447036
445735
542754
575802
576108
522423
802487
732984
732704
517450
606695
617784
699678
608170
644102
780104
744820
732623
808283
824904
712651
720163
803781
750581
621980
460486
650236
719862
654278
791351
756247
603546
589721
557648
577428
544459
654234
654270
680787
691713
720253
637247
758381
512411
519617
506811
511808
501203
503000
545187
790888
760859
623334
439566
507310
627745
585960
516791
439649
486583
515396
586554
516090
590596
]
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 (593056 , 732616 , 732912 , 776530 , 447036 , 445735 , 542754 , 575802 , 576108 , 522423 , 802487 , 732984 , 732704 , 517450 , 606695 , 617784 , 699678 , 608170 , 644102 , 780104 , 744820 , 732623 , 808283 , 824904 , 712651 , 720163 , 803781 , 750581 , 621980 , 460486 , 650236 , 719862 , 654278 , 791351 , 756247 , 603546 , 589721 , 557648 , 577428 , 544459 , 654234 , 654270 , 680787 , 691713 , 720253 , 637247 , 758381 , 512411 , 519617 , 506811 , 511808 , 501203 , 503000 , 545187 , 790888 , 760859 , 623334 , 439566 , 507310 , 627745 , 585960 , 516791 , 439649 , 486583 , 515396 , 586554 , 516090 , 590596 );
Copy
4
3.00 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
439566
439649
445735
447036
460486
486583
501203
503000
506811
507310
511808
512411
515396
516090
516791
517450
519617
522423
542754
544459
545187
557648
575802
576108
577428
585960
586554
589721
590596
593056
603546
606695
608170
617784
621980
623334
627745
637247
644102
650236
654234
654270
654278
680787
691713
699678
712651
719862
720163
720253
732616
732623
732704
732912
732984
744820
750581
756247
758381
760859
776530
780104
790888
791351
802487
803781
808283
824904
]
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 (439566 , 439649 , 445735 , 447036 , 460486 , 486583 , 501203 , 503000 , 506811 , 507310 , 511808 , 512411 , 515396 , 516090 , 516791 , 517450 , 519617 , 522423 , 542754 , 544459 , 545187 , 557648 , 575802 , 576108 , 577428 , 585960 , 586554 , 589721 , 590596 , 593056 , 603546 , 606695 , 608170 , 617784 , 621980 , 623334 , 627745 , 637247 , 644102 , 650236 , 654234 , 654270 , 654278 , 680787 , 691713 , 699678 , 712651 , 719862 , 720163 , 720253 , 732616 , 732623 , 732704 , 732912 , 732984 , 744820 , 750581 , 756247 , 758381 , 760859 , 776530 , 780104 , 790888 , 791351 , 802487 , 803781 , 808283 , 824904 );
Copy
5
89.44 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
439566
439649
445735
447036
460486
486583
501203
503000
506811
507310
511808
512411
515396
516090
516791
517450
519617
522423
542754
544459
545187
557648
575802
576108
577428
585960
586554
589721
590596
593056
603546
606695
608170
617784
621980
623334
627745
637247
644102
650236
654234
654270
654278
680787
691713
699678
712651
719862
720163
720253
732616
732623
732704
732912
732984
744820
750581
756247
758381
760859
776530
780104
790888
791351
802487
803781
808283
824904
]
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 (439566 , 439649 , 445735 , 447036 , 460486 , 486583 , 501203 , 503000 , 506811 , 507310 , 511808 , 512411 , 515396 , 516090 , 516791 , 517450 , 519617 , 522423 , 542754 , 544459 , 545187 , 557648 , 575802 , 576108 , 577428 , 585960 , 586554 , 589721 , 590596 , 593056 , 603546 , 606695 , 608170 , 617784 , 621980 , 623334 , 627745 , 637247 , 644102 , 650236 , 654234 , 654270 , 654278 , 680787 , 691713 , 699678 , 712651 , 719862 , 720163 , 720253 , 732616 , 732623 , 732704 , 732912 , 732984 , 744820 , 750581 , 756247 , 758381 , 760859 , 776530 , 780104 , 790888 , 791351 , 802487 , 803781 , 808283 , 824904 );
Copy