3
13.16 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
757905
521965
474776
502194
532977
646300
631503
447496
516670
573931
565007
607086
427790
558592
566585
458469
464598
485258
528849
417403
504279
624838
427543
497941
716085
415834
698124
535707
537732
809223
727959
624990
418883
506946
605498
480417
511675
466573
690034
533848
623681
631919
624484
651561
542042
593485
522733
191179
419319
591214
502191
419956
624953
540267
564867
631597
537670
527908
600995
496526
496518
400491
428756
529143
472299
464953
810109
527218
459513
485061
632020
633734
526951
618943
549736
]
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 (757905 , 521965 , 474776 , 502194 , 532977 , 646300 , 631503 , 447496 , 516670 , 573931 , 565007 , 607086 , 427790 , 558592 , 566585 , 458469 , 464598 , 485258 , 528849 , 417403 , 504279 , 624838 , 427543 , 497941 , 716085 , 415834 , 698124 , 535707 , 537732 , 809223 , 727959 , 624990 , 418883 , 506946 , 605498 , 480417 , 511675 , 466573 , 690034 , 533848 , 623681 , 631919 , 624484 , 651561 , 542042 , 593485 , 522733 , 191179 , 419319 , 591214 , 502191 , 419956 , 624953 , 540267 , 564867 , 631597 , 537670 , 527908 , 600995 , 496526 , 496518 , 400491 , 428756 , 529143 , 472299 , 464953 , 810109 , 527218 , 459513 , 485061 , 632020 , 633734 , 526951 , 618943 , 549736 );
Copy
4
3.17 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
191179
400491
415834
417403
418883
419319
419956
427543
427790
428756
447496
458469
459513
464598
464953
466573
472299
474776
480417
485061
485258
496518
496526
497941
502191
502194
504279
506946
511675
516670
521965
522733
526951
527218
527908
528849
529143
532977
533848
535707
537670
537732
540267
542042
549736
558592
564867
565007
566585
573931
591214
593485
600995
605498
607086
618943
623681
624484
624838
624953
624990
631503
631597
631919
632020
633734
646300
651561
690034
698124
716085
727959
757905
809223
810109
]
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 (191179 , 400491 , 415834 , 417403 , 418883 , 419319 , 419956 , 427543 , 427790 , 428756 , 447496 , 458469 , 459513 , 464598 , 464953 , 466573 , 472299 , 474776 , 480417 , 485061 , 485258 , 496518 , 496526 , 497941 , 502191 , 502194 , 504279 , 506946 , 511675 , 516670 , 521965 , 522733 , 526951 , 527218 , 527908 , 528849 , 529143 , 532977 , 533848 , 535707 , 537670 , 537732 , 540267 , 542042 , 549736 , 558592 , 564867 , 565007 , 566585 , 573931 , 591214 , 593485 , 600995 , 605498 , 607086 , 618943 , 623681 , 624484 , 624838 , 624953 , 624990 , 631503 , 631597 , 631919 , 632020 , 633734 , 646300 , 651561 , 690034 , 698124 , 716085 , 727959 , 757905 , 809223 , 810109 );
Copy
5
120.02 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
191179
400491
415834
417403
418883
419319
419956
427543
427790
428756
447496
458469
459513
464598
464953
466573
472299
474776
480417
485061
485258
496518
496526
497941
502191
502194
504279
506946
511675
516670
521965
522733
526951
527218
527908
528849
529143
532977
533848
535707
537670
537732
540267
542042
549736
558592
564867
565007
566585
573931
591214
593485
600995
605498
607086
618943
623681
624484
624838
624953
624990
631503
631597
631919
632020
633734
646300
651561
690034
698124
716085
727959
757905
809223
810109
]
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 (191179 , 400491 , 415834 , 417403 , 418883 , 419319 , 419956 , 427543 , 427790 , 428756 , 447496 , 458469 , 459513 , 464598 , 464953 , 466573 , 472299 , 474776 , 480417 , 485061 , 485258 , 496518 , 496526 , 497941 , 502191 , 502194 , 504279 , 506946 , 511675 , 516670 , 521965 , 522733 , 526951 , 527218 , 527908 , 528849 , 529143 , 532977 , 533848 , 535707 , 537670 , 537732 , 540267 , 542042 , 549736 , 558592 , 564867 , 565007 , 566585 , 573931 , 591214 , 593485 , 600995 , 605498 , 607086 , 618943 , 623681 , 624484 , 624838 , 624953 , 624990 , 631503 , 631597 , 631919 , 632020 , 633734 , 646300 , 651561 , 690034 , 698124 , 716085 , 727959 , 757905 , 809223 , 810109 );
Copy