3
12.99 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
490742
515624
539370
485061
401615
417863
460929
476220
521491
521757
561588
681276
681614
562705
582281
625320
600798
591794
810899
750725
747144
421889
478155
525095
522881
494353
528701
823222
528087
574023
573519
797464
478043
401482
528187
527421
418838
513750
542678
542753
576230
681563
596900
475245
421922
522859
511308
511791
515347
458764
480512
522914
543193
681660
606624
639718
639790
470302
418373
433323
524934
557118
414313
639818
421890
570765
647656
489112
]
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 (490742 , 515624 , 539370 , 485061 , 401615 , 417863 , 460929 , 476220 , 521491 , 521757 , 561588 , 681276 , 681614 , 562705 , 582281 , 625320 , 600798 , 591794 , 810899 , 750725 , 747144 , 421889 , 478155 , 525095 , 522881 , 494353 , 528701 , 823222 , 528087 , 574023 , 573519 , 797464 , 478043 , 401482 , 528187 , 527421 , 418838 , 513750 , 542678 , 542753 , 576230 , 681563 , 596900 , 475245 , 421922 , 522859 , 511308 , 511791 , 515347 , 458764 , 480512 , 522914 , 543193 , 681660 , 606624 , 639718 , 639790 , 470302 , 418373 , 433323 , 524934 , 557118 , 414313 , 639818 , 421890 , 570765 , 647656 , 489112 );
Copy
4
2.68 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
401482
401615
414313
417863
418373
418838
421889
421890
421922
433323
458764
460929
470302
475245
476220
478043
478155
480512
485061
489112
490742
494353
511308
511791
513750
515347
515624
521491
521757
522859
522881
522914
524934
525095
527421
528087
528187
528701
539370
542678
542753
543193
557118
561588
562705
570765
573519
574023
576230
582281
591794
596900
600798
606624
625320
639718
639790
639818
647656
681276
681563
681614
681660
747144
750725
797464
810899
823222
]
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 (401482 , 401615 , 414313 , 417863 , 418373 , 418838 , 421889 , 421890 , 421922 , 433323 , 458764 , 460929 , 470302 , 475245 , 476220 , 478043 , 478155 , 480512 , 485061 , 489112 , 490742 , 494353 , 511308 , 511791 , 513750 , 515347 , 515624 , 521491 , 521757 , 522859 , 522881 , 522914 , 524934 , 525095 , 527421 , 528087 , 528187 , 528701 , 539370 , 542678 , 542753 , 543193 , 557118 , 561588 , 562705 , 570765 , 573519 , 574023 , 576230 , 582281 , 591794 , 596900 , 600798 , 606624 , 625320 , 639718 , 639790 , 639818 , 647656 , 681276 , 681563 , 681614 , 681660 , 747144 , 750725 , 797464 , 810899 , 823222 );
Copy
5
106.57 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
401482
401615
414313
417863
418373
418838
421889
421890
421922
433323
458764
460929
470302
475245
476220
478043
478155
480512
485061
489112
490742
494353
511308
511791
513750
515347
515624
521491
521757
522859
522881
522914
524934
525095
527421
528087
528187
528701
539370
542678
542753
543193
557118
561588
562705
570765
573519
574023
576230
582281
591794
596900
600798
606624
625320
639718
639790
639818
647656
681276
681563
681614
681660
747144
750725
797464
810899
823222
]
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 (401482 , 401615 , 414313 , 417863 , 418373 , 418838 , 421889 , 421890 , 421922 , 433323 , 458764 , 460929 , 470302 , 475245 , 476220 , 478043 , 478155 , 480512 , 485061 , 489112 , 490742 , 494353 , 511308 , 511791 , 513750 , 515347 , 515624 , 521491 , 521757 , 522859 , 522881 , 522914 , 524934 , 525095 , 527421 , 528087 , 528187 , 528701 , 539370 , 542678 , 542753 , 543193 , 557118 , 561588 , 562705 , 570765 , 573519 , 574023 , 576230 , 582281 , 591794 , 596900 , 600798 , 606624 , 625320 , 639718 , 639790 , 639818 , 647656 , 681276 , 681563 , 681614 , 681660 , 747144 , 750725 , 797464 , 810899 , 823222 );
Copy