3
13.29 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
69797
728903
740894
808655
795406
680592
208554
808327
726454
783110
554826
808641
88174
423382
771887
757456
604061
784409
421152
604059
777016
527428
526189
784149
619166
504488
491465
745136
765668
447973
554166
602614
624834
498717
722380
749924
556747
786876
790219
504474
737473
575445
423708
452637
426220
469198
804487
512224
477587
485527
813221
527409
443242
511275
799721
772107
519316
423615
470458
443333
425910
699397
428223
559453
803455
583913
650544
776940
427174
452953
460322
448821
666850
]
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 (69797 , 728903 , 740894 , 808655 , 795406 , 680592 , 208554 , 808327 , 726454 , 783110 , 554826 , 808641 , 88174 , 423382 , 771887 , 757456 , 604061 , 784409 , 421152 , 604059 , 777016 , 527428 , 526189 , 784149 , 619166 , 504488 , 491465 , 745136 , 765668 , 447973 , 554166 , 602614 , 624834 , 498717 , 722380 , 749924 , 556747 , 786876 , 790219 , 504474 , 737473 , 575445 , 423708 , 452637 , 426220 , 469198 , 804487 , 512224 , 477587 , 485527 , 813221 , 527409 , 443242 , 511275 , 799721 , 772107 , 519316 , 423615 , 470458 , 443333 , 425910 , 699397 , 428223 , 559453 , 803455 , 583913 , 650544 , 776940 , 427174 , 452953 , 460322 , 448821 , 666850 );
Copy
4
3.33 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
69797
88174
208554
421152
423382
423615
423708
425910
426220
427174
428223
443242
443333
447973
448821
452637
452953
460322
469198
470458
477587
485527
491465
498717
504474
504488
511275
512224
519316
526189
527409
527428
554166
554826
556747
559453
575445
583913
602614
604059
604061
619166
624834
650544
666850
680592
699397
722380
726454
728903
737473
740894
745136
749924
757456
765668
771887
772107
776940
777016
783110
784149
784409
786876
790219
795406
799721
803455
804487
808327
808641
808655
813221
]
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 (69797 , 88174 , 208554 , 421152 , 423382 , 423615 , 423708 , 425910 , 426220 , 427174 , 428223 , 443242 , 443333 , 447973 , 448821 , 452637 , 452953 , 460322 , 469198 , 470458 , 477587 , 485527 , 491465 , 498717 , 504474 , 504488 , 511275 , 512224 , 519316 , 526189 , 527409 , 527428 , 554166 , 554826 , 556747 , 559453 , 575445 , 583913 , 602614 , 604059 , 604061 , 619166 , 624834 , 650544 , 666850 , 680592 , 699397 , 722380 , 726454 , 728903 , 737473 , 740894 , 745136 , 749924 , 757456 , 765668 , 771887 , 772107 , 776940 , 777016 , 783110 , 784149 , 784409 , 786876 , 790219 , 795406 , 799721 , 803455 , 804487 , 808327 , 808641 , 808655 , 813221 );
Copy
5
81.92 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
69797
88174
208554
421152
423382
423615
423708
425910
426220
427174
428223
443242
443333
447973
448821
452637
452953
460322
469198
470458
477587
485527
491465
498717
504474
504488
511275
512224
519316
526189
527409
527428
554166
554826
556747
559453
575445
583913
602614
604059
604061
619166
624834
650544
666850
680592
699397
722380
726454
728903
737473
740894
745136
749924
757456
765668
771887
772107
776940
777016
783110
784149
784409
786876
790219
795406
799721
803455
804487
808327
808641
808655
813221
]
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 (69797 , 88174 , 208554 , 421152 , 423382 , 423615 , 423708 , 425910 , 426220 , 427174 , 428223 , 443242 , 443333 , 447973 , 448821 , 452637 , 452953 , 460322 , 469198 , 470458 , 477587 , 485527 , 491465 , 498717 , 504474 , 504488 , 511275 , 512224 , 519316 , 526189 , 527409 , 527428 , 554166 , 554826 , 556747 , 559453 , 575445 , 583913 , 602614 , 604059 , 604061 , 619166 , 624834 , 650544 , 666850 , 680592 , 699397 , 722380 , 726454 , 728903 , 737473 , 740894 , 745136 , 749924 , 757456 , 765668 , 771887 , 772107 , 776940 , 777016 , 783110 , 784149 , 784409 , 786876 , 790219 , 795406 , 799721 , 803455 , 804487 , 808327 , 808641 , 808655 , 813221 );
Copy