3
11.06 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
666914
749025
738118
705700
563591
558624
618155
671075
561031
583536
680188
545321
635519
418119
555967
563388
680185
550531
540143
598658
544230
554701
541865
545993
553317
550560
464727
737598
460323
553665
546082
559017
571057
426510
555055
826183
736534
559741
456244
497667
618177
598048
623337
466387
542412
581053
784294
603552
662480
637065
549511
652766
591221
473128
535443
613985
557634
560218
586926
602199
541844
601856
439798
601655
559111
541699
556323
]
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 (666914 , 749025 , 738118 , 705700 , 563591 , 558624 , 618155 , 671075 , 561031 , 583536 , 680188 , 545321 , 635519 , 418119 , 555967 , 563388 , 680185 , 550531 , 540143 , 598658 , 544230 , 554701 , 541865 , 545993 , 553317 , 550560 , 464727 , 737598 , 460323 , 553665 , 546082 , 559017 , 571057 , 426510 , 555055 , 826183 , 736534 , 559741 , 456244 , 497667 , 618177 , 598048 , 623337 , 466387 , 542412 , 581053 , 784294 , 603552 , 662480 , 637065 , 549511 , 652766 , 591221 , 473128 , 535443 , 613985 , 557634 , 560218 , 586926 , 602199 , 541844 , 601856 , 439798 , 601655 , 559111 , 541699 , 556323 );
Copy
4
2.46 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
418119
426510
439798
456244
460323
464727
466387
473128
497667
535443
540143
541699
541844
541865
542412
544230
545321
545993
546082
549511
550531
550560
553317
553665
554701
555055
555967
556323
557634
558624
559017
559111
559741
560218
561031
563388
563591
571057
581053
583536
586926
591221
598048
598658
601655
601856
602199
603552
613985
618155
618177
623337
635519
637065
652766
662480
666914
671075
680185
680188
705700
736534
737598
738118
749025
784294
826183
]
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 (418119 , 426510 , 439798 , 456244 , 460323 , 464727 , 466387 , 473128 , 497667 , 535443 , 540143 , 541699 , 541844 , 541865 , 542412 , 544230 , 545321 , 545993 , 546082 , 549511 , 550531 , 550560 , 553317 , 553665 , 554701 , 555055 , 555967 , 556323 , 557634 , 558624 , 559017 , 559111 , 559741 , 560218 , 561031 , 563388 , 563591 , 571057 , 581053 , 583536 , 586926 , 591221 , 598048 , 598658 , 601655 , 601856 , 602199 , 603552 , 613985 , 618155 , 618177 , 623337 , 635519 , 637065 , 652766 , 662480 , 666914 , 671075 , 680185 , 680188 , 705700 , 736534 , 737598 , 738118 , 749025 , 784294 , 826183 );
Copy
5
90.38 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
418119
426510
439798
456244
460323
464727
466387
473128
497667
535443
540143
541699
541844
541865
542412
544230
545321
545993
546082
549511
550531
550560
553317
553665
554701
555055
555967
556323
557634
558624
559017
559111
559741
560218
561031
563388
563591
571057
581053
583536
586926
591221
598048
598658
601655
601856
602199
603552
613985
618155
618177
623337
635519
637065
652766
662480
666914
671075
680185
680188
705700
736534
737598
738118
749025
784294
826183
]
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 (418119 , 426510 , 439798 , 456244 , 460323 , 464727 , 466387 , 473128 , 497667 , 535443 , 540143 , 541699 , 541844 , 541865 , 542412 , 544230 , 545321 , 545993 , 546082 , 549511 , 550531 , 550560 , 553317 , 553665 , 554701 , 555055 , 555967 , 556323 , 557634 , 558624 , 559017 , 559111 , 559741 , 560218 , 561031 , 563388 , 563591 , 571057 , 581053 , 583536 , 586926 , 591221 , 598048 , 598658 , 601655 , 601856 , 602199 , 603552 , 613985 , 618155 , 618177 , 623337 , 635519 , 637065 , 652766 , 662480 , 666914 , 671075 , 680185 , 680188 , 705700 , 736534 , 737598 , 738118 , 749025 , 784294 , 826183 );
Copy