4
11.31 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
396973
455300
745751
435634
698609
547701
481930
597207
643461
492049
454341
464200
494584
480907
638954
769297
715898
600474
761112
451033
546698
673663
556325
425547
516930
423899
556113
557413
432702
534190
455788
566360
477420
250422
554579
454486
454416
508227
509386
574655
436005
464047
509814
552758
555181
493773
472582
513486
477704
453568
489278
514773
521476
588881
808044
468517
477051
456109
495584
586622
454649
502594
515893
484559
566587
565995
605953
621414
627773
619107
561298
611416
512050
]
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 (396973 , 455300 , 745751 , 435634 , 698609 , 547701 , 481930 , 597207 , 643461 , 492049 , 454341 , 464200 , 494584 , 480907 , 638954 , 769297 , 715898 , 600474 , 761112 , 451033 , 546698 , 673663 , 556325 , 425547 , 516930 , 423899 , 556113 , 557413 , 432702 , 534190 , 455788 , 566360 , 477420 , 250422 , 554579 , 454486 , 454416 , 508227 , 509386 , 574655 , 436005 , 464047 , 509814 , 552758 , 555181 , 493773 , 472582 , 513486 , 477704 , 453568 , 489278 , 514773 , 521476 , 588881 , 808044 , 468517 , 477051 , 456109 , 495584 , 586622 , 454649 , 502594 , 515893 , 484559 , 566587 , 565995 , 605953 , 621414 , 627773 , 619107 , 561298 , 611416 , 512050 );
Copy
5
3.08 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
250422
396973
423899
425547
432702
435634
436005
451033
453568
454341
454416
454486
454649
455300
455788
456109
464047
464200
468517
472582
477051
477420
477704
480907
481930
484559
489278
492049
493773
494584
495584
502594
508227
509386
509814
512050
513486
514773
515893
516930
521476
534190
546698
547701
552758
554579
555181
556113
556325
557413
561298
565995
566360
566587
574655
586622
588881
597207
600474
605953
611416
619107
621414
627773
638954
643461
673663
698609
715898
745751
761112
769297
808044
]
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 (250422 , 396973 , 423899 , 425547 , 432702 , 435634 , 436005 , 451033 , 453568 , 454341 , 454416 , 454486 , 454649 , 455300 , 455788 , 456109 , 464047 , 464200 , 468517 , 472582 , 477051 , 477420 , 477704 , 480907 , 481930 , 484559 , 489278 , 492049 , 493773 , 494584 , 495584 , 502594 , 508227 , 509386 , 509814 , 512050 , 513486 , 514773 , 515893 , 516930 , 521476 , 534190 , 546698 , 547701 , 552758 , 554579 , 555181 , 556113 , 556325 , 557413 , 561298 , 565995 , 566360 , 566587 , 574655 , 586622 , 588881 , 597207 , 600474 , 605953 , 611416 , 619107 , 621414 , 627773 , 638954 , 643461 , 673663 , 698609 , 715898 , 745751 , 761112 , 769297 , 808044 );
Copy
6
122.33 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
250422
396973
423899
425547
432702
435634
436005
451033
453568
454341
454416
454486
454649
455300
455788
456109
464047
464200
468517
472582
477051
477420
477704
480907
481930
484559
489278
492049
493773
494584
495584
502594
508227
509386
509814
512050
513486
514773
515893
516930
521476
534190
546698
547701
552758
554579
555181
556113
556325
557413
561298
565995
566360
566587
574655
586622
588881
597207
600474
605953
611416
619107
621414
627773
638954
643461
673663
698609
715898
745751
761112
769297
808044
]
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 (250422 , 396973 , 423899 , 425547 , 432702 , 435634 , 436005 , 451033 , 453568 , 454341 , 454416 , 454486 , 454649 , 455300 , 455788 , 456109 , 464047 , 464200 , 468517 , 472582 , 477051 , 477420 , 477704 , 480907 , 481930 , 484559 , 489278 , 492049 , 493773 , 494584 , 495584 , 502594 , 508227 , 509386 , 509814 , 512050 , 513486 , 514773 , 515893 , 516930 , 521476 , 534190 , 546698 , 547701 , 552758 , 554579 , 555181 , 556113 , 556325 , 557413 , 561298 , 565995 , 566360 , 566587 , 574655 , 586622 , 588881 , 597207 , 600474 , 605953 , 611416 , 619107 , 621414 , 627773 , 638954 , 643461 , 673663 , 698609 , 715898 , 745751 , 761112 , 769297 , 808044 );
Copy