3
11.58 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
459185
453754
506950
526904
555012
571361
550179
567908
555856
567509
577404
582438
660013
666823
692902
679420
563635
566754
597645
618668
597430
631119
788209
798666
786114
755481
614768
632818
463004
453515
482067
483585
517261
526280
571715
584421
693944
559513
595267
605162
591983
619535
812486
807899
426550
424506
501732
498357
515614
448084
565710
572385
680819
613576
635627
604710
723994
444158
445706
515420
517797
440623
523021
570223
410218
516078
569841
570306
601941
]
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 (459185 , 453754 , 506950 , 526904 , 555012 , 571361 , 550179 , 567908 , 555856 , 567509 , 577404 , 582438 , 660013 , 666823 , 692902 , 679420 , 563635 , 566754 , 597645 , 618668 , 597430 , 631119 , 788209 , 798666 , 786114 , 755481 , 614768 , 632818 , 463004 , 453515 , 482067 , 483585 , 517261 , 526280 , 571715 , 584421 , 693944 , 559513 , 595267 , 605162 , 591983 , 619535 , 812486 , 807899 , 426550 , 424506 , 501732 , 498357 , 515614 , 448084 , 565710 , 572385 , 680819 , 613576 , 635627 , 604710 , 723994 , 444158 , 445706 , 515420 , 517797 , 440623 , 523021 , 570223 , 410218 , 516078 , 569841 , 570306 , 601941 );
Copy
4
2.36 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
410218
424506
426550
440623
444158
445706
448084
453515
453754
459185
463004
482067
483585
498357
501732
506950
515420
515614
516078
517261
517797
523021
526280
526904
550179
555012
555856
559513
563635
565710
566754
567509
567908
569841
570223
570306
571361
571715
572385
577404
582438
584421
591983
595267
597430
597645
601941
604710
605162
613576
614768
618668
619535
631119
632818
635627
660013
666823
679420
680819
692902
693944
723994
755481
786114
788209
798666
807899
812486
]
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 (410218 , 424506 , 426550 , 440623 , 444158 , 445706 , 448084 , 453515 , 453754 , 459185 , 463004 , 482067 , 483585 , 498357 , 501732 , 506950 , 515420 , 515614 , 516078 , 517261 , 517797 , 523021 , 526280 , 526904 , 550179 , 555012 , 555856 , 559513 , 563635 , 565710 , 566754 , 567509 , 567908 , 569841 , 570223 , 570306 , 571361 , 571715 , 572385 , 577404 , 582438 , 584421 , 591983 , 595267 , 597430 , 597645 , 601941 , 604710 , 605162 , 613576 , 614768 , 618668 , 619535 , 631119 , 632818 , 635627 , 660013 , 666823 , 679420 , 680819 , 692902 , 693944 , 723994 , 755481 , 786114 , 788209 , 798666 , 807899 , 812486 );
Copy
5
90.11 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
410218
424506
426550
440623
444158
445706
448084
453515
453754
459185
463004
482067
483585
498357
501732
506950
515420
515614
516078
517261
517797
523021
526280
526904
550179
555012
555856
559513
563635
565710
566754
567509
567908
569841
570223
570306
571361
571715
572385
577404
582438
584421
591983
595267
597430
597645
601941
604710
605162
613576
614768
618668
619535
631119
632818
635627
660013
666823
679420
680819
692902
693944
723994
755481
786114
788209
798666
807899
812486
]
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 (410218 , 424506 , 426550 , 440623 , 444158 , 445706 , 448084 , 453515 , 453754 , 459185 , 463004 , 482067 , 483585 , 498357 , 501732 , 506950 , 515420 , 515614 , 516078 , 517261 , 517797 , 523021 , 526280 , 526904 , 550179 , 555012 , 555856 , 559513 , 563635 , 565710 , 566754 , 567509 , 567908 , 569841 , 570223 , 570306 , 571361 , 571715 , 572385 , 577404 , 582438 , 584421 , 591983 , 595267 , 597430 , 597645 , 601941 , 604710 , 605162 , 613576 , 614768 , 618668 , 619535 , 631119 , 632818 , 635627 , 660013 , 666823 , 679420 , 680819 , 692902 , 693944 , 723994 , 755481 , 786114 , 788209 , 798666 , 807899 , 812486 );
Copy