4
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
811467
787768
810355
801801
560404
801807
547922
800696
785433
515540
595515
811407
566526
445789
782253
411591
554840
781718
752973
596550
620040
398949
461061
783393
818662
552620
740943
823357
388559
575761
524644
510034
590458
472010
481782
492468
21488
817010
469845
548629
547907
574611
639791
3793
443740
459897
481781
470484
525606
383373
575769
553964
510146
484274
483613
484278
461055
470279
490771
569674
591292
454840
537028
556036
]
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 (811467 , 787768 , 810355 , 801801 , 560404 , 801807 , 547922 , 800696 , 785433 , 515540 , 595515 , 811407 , 566526 , 445789 , 782253 , 411591 , 554840 , 781718 , 752973 , 596550 , 620040 , 398949 , 461061 , 783393 , 818662 , 552620 , 740943 , 823357 , 388559 , 575761 , 524644 , 510034 , 590458 , 472010 , 481782 , 492468 , 21488 , 817010 , 469845 , 548629 , 547907 , 574611 , 639791 , 3793 , 443740 , 459897 , 481781 , 470484 , 525606 , 383373 , 575769 , 553964 , 510146 , 484274 , 483613 , 484278 , 461055 , 470279 , 490771 , 569674 , 591292 , 454840 , 537028 , 556036 );
Copy
5
2.84 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
3793
21488
383373
388559
398949
411591
443740
445789
454840
459897
461055
461061
469845
470279
470484
472010
481781
481782
483613
484274
484278
490771
492468
510034
510146
515540
524644
525606
537028
547907
547922
548629
552620
553964
554840
556036
560404
566526
569674
574611
575761
575769
590458
591292
595515
596550
620040
639791
740943
752973
781718
782253
783393
785433
787768
800696
801801
801807
810355
811407
811467
817010
818662
823357
]
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 (3793 , 21488 , 383373 , 388559 , 398949 , 411591 , 443740 , 445789 , 454840 , 459897 , 461055 , 461061 , 469845 , 470279 , 470484 , 472010 , 481781 , 481782 , 483613 , 484274 , 484278 , 490771 , 492468 , 510034 , 510146 , 515540 , 524644 , 525606 , 537028 , 547907 , 547922 , 548629 , 552620 , 553964 , 554840 , 556036 , 560404 , 566526 , 569674 , 574611 , 575761 , 575769 , 590458 , 591292 , 595515 , 596550 , 620040 , 639791 , 740943 , 752973 , 781718 , 782253 , 783393 , 785433 , 787768 , 800696 , 801801 , 801807 , 810355 , 811407 , 811467 , 817010 , 818662 , 823357 );
Copy
6
84.79 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
3793
21488
383373
388559
398949
411591
443740
445789
454840
459897
461055
461061
469845
470279
470484
472010
481781
481782
483613
484274
484278
490771
492468
510034
510146
515540
524644
525606
537028
547907
547922
548629
552620
553964
554840
556036
560404
566526
569674
574611
575761
575769
590458
591292
595515
596550
620040
639791
740943
752973
781718
782253
783393
785433
787768
800696
801801
801807
810355
811407
811467
817010
818662
823357
]
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 (3793 , 21488 , 383373 , 388559 , 398949 , 411591 , 443740 , 445789 , 454840 , 459897 , 461055 , 461061 , 469845 , 470279 , 470484 , 472010 , 481781 , 481782 , 483613 , 484274 , 484278 , 490771 , 492468 , 510034 , 510146 , 515540 , 524644 , 525606 , 537028 , 547907 , 547922 , 548629 , 552620 , 553964 , 554840 , 556036 , 560404 , 566526 , 569674 , 574611 , 575761 , 575769 , 590458 , 591292 , 595515 , 596550 , 620040 , 639791 , 740943 , 752973 , 781718 , 782253 , 783393 , 785433 , 787768 , 800696 , 801801 , 801807 , 810355 , 811407 , 811467 , 817010 , 818662 , 823357 );
Copy