3
10.62 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
824065
809659
820749
415464
474507
819940
756421
823720
797012
768758
504014
697203
547434
728779
458804
761531
631059
423516
715593
819949
610023
632295
748076
801343
756875
716972
771442
440798
609042
505538
480861
440954
727783
464800
552697
501322
534828
530066
784764
763529
803714
444601
435523
612254
494060
438032
817716
534020
475977
563772
584365
751507
586009
572697
577696
463636
692817
444883
456202
504450
750701
515633
460325
624990
594353
455974
564377
564555
577600
591452
603420
625437
563634
588650
]
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 (824065 , 809659 , 820749 , 415464 , 474507 , 819940 , 756421 , 823720 , 797012 , 768758 , 504014 , 697203 , 547434 , 728779 , 458804 , 761531 , 631059 , 423516 , 715593 , 819949 , 610023 , 632295 , 748076 , 801343 , 756875 , 716972 , 771442 , 440798 , 609042 , 505538 , 480861 , 440954 , 727783 , 464800 , 552697 , 501322 , 534828 , 530066 , 784764 , 763529 , 803714 , 444601 , 435523 , 612254 , 494060 , 438032 , 817716 , 534020 , 475977 , 563772 , 584365 , 751507 , 586009 , 572697 , 577696 , 463636 , 692817 , 444883 , 456202 , 504450 , 750701 , 515633 , 460325 , 624990 , 594353 , 455974 , 564377 , 564555 , 577600 , 591452 , 603420 , 625437 , 563634 , 588650 );
Copy
4
2.88 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
415464
423516
435523
438032
440798
440954
444601
444883
455974
456202
458804
460325
463636
464800
474507
475977
480861
494060
501322
504014
504450
505538
515633
530066
534020
534828
547434
552697
563634
563772
564377
564555
572697
577600
577696
584365
586009
588650
591452
594353
603420
609042
610023
612254
624990
625437
631059
632295
692817
697203
715593
716972
727783
728779
748076
750701
751507
756421
756875
761531
763529
768758
771442
784764
797012
801343
803714
809659
817716
819940
819949
820749
823720
824065
]
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 (415464 , 423516 , 435523 , 438032 , 440798 , 440954 , 444601 , 444883 , 455974 , 456202 , 458804 , 460325 , 463636 , 464800 , 474507 , 475977 , 480861 , 494060 , 501322 , 504014 , 504450 , 505538 , 515633 , 530066 , 534020 , 534828 , 547434 , 552697 , 563634 , 563772 , 564377 , 564555 , 572697 , 577600 , 577696 , 584365 , 586009 , 588650 , 591452 , 594353 , 603420 , 609042 , 610023 , 612254 , 624990 , 625437 , 631059 , 632295 , 692817 , 697203 , 715593 , 716972 , 727783 , 728779 , 748076 , 750701 , 751507 , 756421 , 756875 , 761531 , 763529 , 768758 , 771442 , 784764 , 797012 , 801343 , 803714 , 809659 , 817716 , 819940 , 819949 , 820749 , 823720 , 824065 );
Copy
5
81.47 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
415464
423516
435523
438032
440798
440954
444601
444883
455974
456202
458804
460325
463636
464800
474507
475977
480861
494060
501322
504014
504450
505538
515633
530066
534020
534828
547434
552697
563634
563772
564377
564555
572697
577600
577696
584365
586009
588650
591452
594353
603420
609042
610023
612254
624990
625437
631059
632295
692817
697203
715593
716972
727783
728779
748076
750701
751507
756421
756875
761531
763529
768758
771442
784764
797012
801343
803714
809659
817716
819940
819949
820749
823720
824065
]
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 (415464 , 423516 , 435523 , 438032 , 440798 , 440954 , 444601 , 444883 , 455974 , 456202 , 458804 , 460325 , 463636 , 464800 , 474507 , 475977 , 480861 , 494060 , 501322 , 504014 , 504450 , 505538 , 515633 , 530066 , 534020 , 534828 , 547434 , 552697 , 563634 , 563772 , 564377 , 564555 , 572697 , 577600 , 577696 , 584365 , 586009 , 588650 , 591452 , 594353 , 603420 , 609042 , 610023 , 612254 , 624990 , 625437 , 631059 , 632295 , 692817 , 697203 , 715593 , 716972 , 727783 , 728779 , 748076 , 750701 , 751507 , 756421 , 756875 , 761531 , 763529 , 768758 , 771442 , 784764 , 797012 , 801343 , 803714 , 809659 , 817716 , 819940 , 819949 , 820749 , 823720 , 824065 );
Copy